-
Notifications
You must be signed in to change notification settings - Fork 0
/
sfr.i
142 lines (127 loc) · 1.77 KB
/
sfr.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
*
* Special Function Register addresses
*
ACC EQU $100
PSW EQU $101
B EQU $102
C EQU $103
TRL EQU $104
TRH EQU $105
SP EQU $106
PCON EQU $107
IE EQU $108
IP EQU $109
EXT EQU $10D
OCR EQU $10E
T0CON EQU $110
T0PRR EQU $111
T0L EQU $112
T0LR EQU $113
T0H EQU $114
T0HR EQU $115
T1CNT EQU $118
T1LC EQU $11A
T1L EQU $11B
T1LR EQU $11B
T1HC EQU $11C
T1H EQU $11D
T1HR EQU $11D
MCR EQU $120
STAD EQU $122
CNR EQU $123
TDR EQU $124
XBNK EQU $125
VCCR EQU $127
SCON0 EQU $130
SBUF0 EQU $131
SBR EQU $132
SCON1 EQU $134
SBUF1 EQU $135
P1 EQU $144
P1DDR EQU $145
P1FCR EQU $146
P3 EQU $14C
P3DDR EQU $14D
P3INT EQU $14E
P7 EQU $15C
I01CR EQU $15D
I23CR EQU $15E
ISL EQU $15F
VSEL EQU $163
VRMAD1 EQU $164
VRMAD2 EQU $165
VTRBF EQU $166
VLREG EQU $167
BTCR EQU $17F
XRAM EQU $180
*
* PSW bits
*
CY EQU 7
AC EQU 6
IRBK1 EQU 4
IRBK0 EQU 3
OV EQU 2
RAMBK0 EQU 1
P EQU 0
*
* PCON bits
*
HOLD EQU 1
HALT EQU 0
*
* IE bits (names guessed by sgust@ithh.infoserv.de)
*
MASTIE EQU 7
INT1PRI EQU 1
INT0PRI EQU 0
*
* OCR bits (names guessed by sgust@ithh.infoserv.de)
*
HALFCLK EQU 7
SUBCLK EQU 5
MAINCLK EQU 4
RCCTL EQU 1
MAINCTL EQU 0
*
* T0CON bits
*
T0HRUN EQU 7
T0LRUN EQU 6
T0LONG EQU 5
ELDT0C EQU 4
T0HOVF EQU 3
T0HIE EQU 2
T0LOVF EQU 1
T0LIE EQU 0
*
* T1CNT bits
*
T1HRUN EQU 7
T1LRUN EQU 6
T1LONG EQU 5
ELDT1C EQU 4
T1HOVF EQU 3
T1HIE EQU 2
T1LOVF EQU 1
T1LIE EQU 0
*
* P3INT bits (names guessed by sgust@ithh.infoserv.de)
*
P3HOLD EQU 2
P3IFLAG EQU 1
P3IE EQU 0
*
*VSEL bits(added by Butze@Rockin-b.de)
*
INCE EQU 4
*
*MCR bits(added by Butze@Rockin-b.de)
*
MCR0 EQU 0
MCR3 EQU 3
MCR4 EQU 4
*
*VCCR bits(added by Butze@Rockin-b.de)
*
VCCR7 EQU 7