Mercurial > lcfOS
diff python/ppci/target/basetarget.py @ 354:5477e499b039
Added some sort of string functionality
author | Windel Bouwman |
---|---|
date | Thu, 13 Mar 2014 18:59:06 +0100 |
parents | 3bb7dcfe5529 |
children | c05ab629976a |
line wrap: on
line diff
--- a/python/ppci/target/basetarget.py Sun Mar 09 18:49:10 2014 +0100 +++ b/python/ppci/target/basetarget.py Thu Mar 13 18:59:06 2014 +0100 @@ -21,6 +21,9 @@ def encode(self): return bytes() + def __repr__(self): + return 'NOP' + class PseudoInstruction(Instruction): pass @@ -84,6 +87,7 @@ self.desc = desc self.registers = [] self.byte_sizes = {'int' : 4} # For front end! + self.byte_sizes['byte'] = 1 # For lowering: self.lower_functions = {}