Mercurial > lcfOS
view python/ppci/target/arm/token.py @ 399:a7c444404df9
Fix hexwrite
author | Windel Bouwman |
---|---|
date | Fri, 20 Jun 2014 16:36:49 +0200 |
parents | 899ae3aea803 |
children |
line wrap: on
line source
from ..token import Token, u32, bit_range class ArmToken(Token): def __init__(self): super().__init__(32) cond = bit_range(28, 32) S = bit_range(20, 21) Rd = bit_range(12, 16) Rn = bit_range(16, 20) Rm = bit_range(0, 4) def encode(self): return u32(self.bit_value)