summaryrefslogtreecommitdiff
path: root/src/macros/code.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2018-02-23 21:19:31 +0100
committerxCrystal <rgr.crystal@gmail.com>2018-02-23 21:19:31 +0100
commit107d5b24c157f5d061a1374d930106878dc3cb4c (patch)
tree2bd15610381fba88f0181b5f32c73a533f202b2e /src/macros/code.asm
parent4ab687caf426041e6e5b79093eff9f1b805bf4d5 (diff)
More labeling and disasm
Diffstat (limited to 'src/macros/code.asm')
-rw-r--r--src/macros/code.asm9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/macros/code.asm b/src/macros/code.asm
index 24c3bf1..276bd6a 100644
--- a/src/macros/code.asm
+++ b/src/macros/code.asm
@@ -30,16 +30,13 @@ 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