-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmacros.inc.asm
62 lines (51 loc) · 843 Bytes
/
macros.inc.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
CSP_BREAK MACRO : IFDEF TESTING : break : ENDIF : ENDM
call48k MACRO address
rst $18
DEFW address
ENDM
PrintChar MACRO
rst $10
ENDM
ErrorIfNoCarry MACRO ErrAddr
jp c, .Continue
ld hl, ErrAddr
.Stop:
Border 2
jr .Stop
.Continue:
ENDM
EspSend MACRO Text
ld hl, .txtB
ld e, .txtE - .txtB
call espSend
jr .txtE
.txtB
DB Text
.txtE
ENDM
EspCmd MACRO Text
ld hl, .txtB
ld e, .txtE - .txtB
call espSend
jr .txtE
.txtB
DB Text
DB 13, 10
.txtE
ENDM
EspCmdOkErr MACRO text
EspCmd text
call checkOkErr
ENDM
NextRegRead MACRO Register
ld bc, $243B ; Port.NextReg = $243B
ld a, Register
call NextRegReadProc
ENDM
dos MACRO func
rst 8
db func
ENDM
page MACRO slot, page
nextreg REG_MMU0+slot,page
ENDM