mirror of
https://github.com/froggestspirit/wland3.git
synced 2024-11-26 23:50:31 +00:00
37 lines
344 B
NASM
37 lines
344 B
NASM
farcall: MACRO
|
|
ld a,[$C5FF]
|
|
push af
|
|
ld a,BANK(\1)
|
|
ld [$C5FF],a
|
|
ld [$2100],a
|
|
call \1
|
|
pop af
|
|
ld [$C5FF],a
|
|
ld [$2100],a
|
|
ENDM
|
|
|
|
farjump: MACRO
|
|
ld a,[$C5FF]
|
|
push af
|
|
ld a,BANK(\1)
|
|
ld [$C5FF],a
|
|
ld [$2100],a
|
|
jp \1
|
|
ENDM
|
|
|
|
dbw: MACRO
|
|
db BANK(\1)
|
|
dw \1
|
|
ENDM
|
|
|
|
sound_pointer: MACRO
|
|
dw \1
|
|
db BANK(\1)
|
|
db 0
|
|
db \2
|
|
db \3
|
|
db \4
|
|
db 0
|
|
ENDM
|
|
|