diff options
author | Peter Wu <lekensteyn@gmail.com> | 2011-12-04 14:37:59 +0000 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2011-12-04 14:37:59 +0000 |
commit | 61a73ce50b1c779879bffcd8235e9a529f3b1949 (patch) | |
tree | 2bb965273d5d1043747ace34c593ffd96c63f95d /AsmLine.py | |
parent | bcc2906f62f7c0565cb0b2efe9b2c4d1275a122e (diff) | |
download | pp2cc-61a73ce50b1c779879bffcd8235e9a529f3b1949.tar.gz |
Support CONS and lonely labels when parsing .asm files
Diffstat (limited to 'AsmLine.py')
-rw-r--r-- | AsmLine.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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): |