-
Notifications
You must be signed in to change notification settings - Fork 3
/
macros.asm
43 lines (35 loc) · 1 KB
/
macros.asm
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
;__________________________________________________________________________________________________
; Macros for the register names
R0 EQU 0
R1 EQU 1
R2 EQU 2
R3 EQU 3
R4 EQU 4
R5 EQU 5
R6 EQU 6
R7 EQU 7
R8 EQU 8
R9 EQU 9
RA EQU 10
RB EQU 11
RC EQU 12
RD EQU 13
RE EQU 14
RF EQU 15
;__________________________________________________________________________________________________
; Macros for the MCSMP20J monitor program
STACK EQU 7F6FH
CALL EQU 8ADBH
RETURN EQU 8AEDH
;NOTE: REGISTER RE MUST BE LOADED WITH THE BAUD RATE INFO PRIOR TO
;USING ANY INPUT OR OUTPUT CALLS
;BAUD RATE INFO IS STORED AT 7FCD AND 7FCE
;M(7FCD) GOES INTO RE.1
;M(7FCE) GOES INTO RE.0
BAUD EQU 7FCDH
MON_INPUT EQU 8005H
MON_OUTSTR EQU 8526H
;__________________________________________________________________________________________________
; Macros for saving/loading game state
STATE_LOC EQU 7F70H
STATE_SIZE EQU 65 ; IL + 4