annotate python/ppci/target/msp430/registers.py @ 348:442fb043d149

Added log option to zcc
author Windel Bouwman
date Sat, 08 Mar 2014 15:32:33 +0100
parents 86b02c98a717
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 ..basetarget import Register
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
3
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
4 class Msp430Register(Register):
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
5 def __init__(self, num, name):
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
6 super().__init__(name)
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
7 self.num = num
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
8
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
9 # 8 bit registers:
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
10 PCB = Msp430Register(0, 'r0')
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
11 rpc = PCB
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
12 r10 = Msp430Register(10, 'r10')
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
13 r11 = Msp430Register(11, 'r11')
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
14 r12 = Msp430Register(12, 'r12')
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
15 r13 = Msp430Register(13, 'r13')
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
16 r14 = Msp430Register(14, 'r14')
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
17 r15 = Msp430Register(15, 'r15')
86b02c98a717 Moved target directory
Windel Bouwman
parents:
diff changeset
18