annotate python/ppci/target/arm/token.py @ 356:52492b304adf

Added newline to print
author Windel Bouwman
date Fri, 14 Mar 2014 13:02:16 +0100
parents 899ae3aea803
children
rev   line source
342
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
1
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
2 from ..token import Token, u32, bit_range
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
3
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
4
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
5 class ArmToken(Token):
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
6 def __init__(self):
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
7 super().__init__(32)
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
8
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
9 cond = bit_range(28, 32)
345
b4882ff0ed06 Added more arm isa tests
Windel Bouwman
parents: 342
diff changeset
10 S = bit_range(20, 21)
b4882ff0ed06 Added more arm isa tests
Windel Bouwman
parents: 342
diff changeset
11 Rd = bit_range(12, 16)
b4882ff0ed06 Added more arm isa tests
Windel Bouwman
parents: 342
diff changeset
12 Rn = bit_range(16, 20)
352
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents: 345
diff changeset
13 Rm = bit_range(0, 4)
342
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
14
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
15 def encode(self):
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
16 return u32(self.bit_value)