summaryrefslogtreecommitdiff
path: root/AsmLine.py
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2011-12-04 14:37:59 +0000
committerPeter Wu <lekensteyn@gmail.com>2011-12-04 14:37:59 +0000
commit61a73ce50b1c779879bffcd8235e9a529f3b1949 (patch)
tree2bb965273d5d1043747ace34c593ffd96c63f95d /AsmLine.py
parentbcc2906f62f7c0565cb0b2efe9b2c4d1275a122e (diff)
downloadpp2cc-61a73ce50b1c779879bffcd8235e9a529f3b1949.tar.gz
Support CONS and lonely labels when parsing .asm files
Diffstat (limited to 'AsmLine.py')
-rw-r--r--AsmLine.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/AsmLine.py b/AsmLine.py
index 5a5249f..0b99119 100644
--- a/AsmLine.py
+++ b/AsmLine.py
@@ -64,6 +64,9 @@ class AsmLine(object):
elif self.instruction in Asm.operators_misc_noreg:
# no args
pass
+ elif self.instruction == "CONS":
+ # pseudo instruction
+ self.setOperand(parts[1])
else:
raise RuntimeError("Unknown instruction '{}'".format(self.instruction))
def setOperand(self, str):