Mercurial > lcfOS
view python/ppci/target/thumb/armtoken.py @ 371:9c95f93f5b7a
Python 3.2 compatible issues
author | Windel Bouwman |
---|---|
date | Fri, 21 Mar 2014 12:01:19 +0100 |
parents | 86b02c98a717 |
children |
line wrap: on
line source
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)