Mercurial > lcfOS
diff python/target.py @ 275:6f2423df0675
Fixed serve arm-as
author | Windel Bouwman |
---|---|
date | Sat, 14 Sep 2013 17:29:10 +0200 |
parents | e41e4109addd |
children | 046017431c6a |
line wrap: on
line diff
--- a/python/target.py Wed Sep 04 17:35:06 2013 +0200 +++ b/python/target.py Sat Sep 14 17:29:10 2013 +0200 @@ -22,6 +22,16 @@ if type(vop) is ANumber and vop.number < 256: return cls(vop.number) +class Imm7: + def __init__(self, imm): + assert imm < 128 + self.imm = imm + + @classmethod + def Create(cls, vop): + if type(vop) is ANumber and vop.number < 128: + return cls(vop.number) + class Imm3: def __init__(self, imm): assert imm < 8