summaryrefslogtreecommitdiff
path: root/src/macros/code.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2018-02-27 11:09:09 -0600
committerGitHub <noreply@github.com>2018-02-27 11:09:09 -0600
commit96b32412d82bdee2756b1a300b05d2647da9ad1f (patch)
tree677858a17041e829c8a442be2b16b43e20d2a341 /src/macros/code.asm
parent24f40989d472407dc51653f2a671348126c6e816 (diff)
parent43d4b8644de2ffb3b1fc13638081cd228c4b2c74 (diff)
Merge pull request #35 from xCrystal/master
Lots of bank0 and some bank1 disasm, labeling and corrections ; Many constants related to duels, cards, and WRAM structs ; Replace hardcoded WRAM addresses with generic labels ; Style clean up ; Format SGB packets ; Reorganize some gfx files
Diffstat (limited to 'src/macros/code.asm')
-rw-r--r--src/macros/code.asm13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/macros/code.asm b/src/macros/code.asm
index 47b698f..276bd6a 100644
--- a/src/macros/code.asm
+++ b/src/macros/code.asm
@@ -30,18 +30,19 @@ ENDM
farcall: MACRO
rst $28
+if _NARG == 1
db BANK(\1)
dw \1
-ENDM
-
-; used when the specified bank does not match the bank of the specified function
-; otherwise, farcall is preferred
-farcallx: MACRO
- rst $28
+else
db \1
dw \2
+endc
ENDM
+; the rst $38 handler is a single ret
+; probably used for testing purposes during development
+debug_ret EQUS "rst $38"
+
emptybank: MACRO
rept $4000
db $ff