Mercurial > lcfOS
diff python/ppci/target/thumb/armtoken.py @ 342:86b02c98a717 devel
Moved target directory
author | Windel Bouwman |
---|---|
date | Sat, 01 Mar 2014 15:40:31 +0100 |
parents | python/target/armtoken.py@4d204f6f7d4e |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/ppci/target/thumb/armtoken.py Sat Mar 01 15:40:31 2014 +0100 @@ -0,0 +1,12 @@ + +from ..token import Token, u16, bit_range + +class ThumbToken(Token): + def __init__(self): + super().__init__(16) + + rd = bit_range(0, 3) + + def encode(self): + return u16(self.bit_value) +