-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros.asm
35 lines (29 loc) · 907 Bytes
/
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
;
; Macros
;
setas .macro ; Make accumulator 8-bits
SEP #$20
.as
.endm
setal .macro ; Make accumulator 16-bit
REP #$20
.al
.endm
setxs .macro ; Make index registers 8-bits
SEP #$10
.xs
.endm
setxl .macro ; Make index registers 16-bits
REP #$10
.xl
.endm
setaxs .macro ; Make accumulator and index registers 8-bits
SEP #$30
.as
.xs
.endm
setaxl .macro ; Make accumulator and index registers 16-bits
REP #$30
.al
.xl
.endm