aboutsummaryrefslogtreecommitdiffstats
path: root/macros
diff options
context:
space:
mode:
authorRangi <sylvie.oukaour+rangi42@gmail.com>2025-12-01 13:57:15 -0500
committerRangi <sylvie.oukaour+rangi42@gmail.com>2025-12-01 13:58:30 -0500
commit7272d9bb8a84106c877ced52d0d85fb8287936f1 (patch)
treea0832a34390f10b90243c8f137200debabbeff24 /macros
parentDefine player and rival names once, to be used in two places (#545) (diff)
downloadpokeyellow-7272d9bb8a84106c877ced52d0d85fb8287936f1.tar.gz
pokeyellow-7272d9bb8a84106c877ced52d0d85fb8287936f1.tar.xz
pokeyellow-7272d9bb8a84106c877ced52d0d85fb8287936f1.zip
Comment that `farcall` and `callfar` are interchangable
Diffstat (limited to 'macros')
-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