annotate python/ppci/target/arm/token.py @ 365:98ff43cfdd36
Nasty bug in adr instruction
author |
Windel Bouwman |
date |
Wed, 19 Mar 2014 22:32:04 +0100 |
parents |
899ae3aea803 |
children |
|
rev |
line source |
342
|
1
|
|
2 from ..token import Token, u32, bit_range
|
|
3
|
|
4
|
|
5 class ArmToken(Token):
|
|
6 def __init__(self):
|
|
7 super().__init__(32)
|
|
8
|
|
9 cond = bit_range(28, 32)
|
345
|
10 S = bit_range(20, 21)
|
|
11 Rd = bit_range(12, 16)
|
|
12 Rn = bit_range(16, 20)
|
352
|
13 Rm = bit_range(0, 4)
|
342
|
14
|
|
15 def encode(self):
|
|
16 return u32(self.bit_value)
|