Mercurial > lcfOS
diff python/target.py @ 219:1fa3e0050b49
Expanded ad hoc code generator
author | Windel Bouwman |
---|---|
date | Sat, 06 Jul 2013 12:38:09 +0200 |
parents | 6c6bf8890d8a |
children | 83781bd10fdb |
line wrap: on
line diff
--- a/python/target.py Fri Jul 05 15:30:22 2013 +0200 +++ b/python/target.py Sat Jul 06 12:38:09 2013 +0200 @@ -93,7 +93,7 @@ # look for a suitable instruction for ic in self.instructions: - if ic.mnemonic == vi.mnemonic and len(ic.operands) == len(vi.operands): + if ic.mnemonic.upper() == vi.mnemonic.upper() and len(ic.operands) == len(vi.operands): # Try to map operands to the correct operand types: rops = [roptype.Create(vop) for roptype, vop in zip(ic.operands, vi.operands)]