aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macros/farcall.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/macros/farcall.asm b/macros/farcall.asm
index ead11739..4418ea6d 100644
--- a/macros/farcall.asm
+++ b/macros/farcall.asm
@@ -1,3 +1,10 @@
+; Far calls to another bank
+
+; There is no difference between `farcall` and `callfar`, except the arbitrary
+; order in which they set `a` and `hl` before calling `FarCall`.
+; We use the more natural name "farcall" for the more common order.
+; The same goes for `farjp` and `jpfar`.
+
MACRO farcall
ld b, BANK(\1)
ld hl, \1