summaryrefslogtreecommitdiff
path: root/include/macros.inc
diff options
context:
space:
mode:
Diffstat (limited to 'include/macros.inc')
-rw-r--r--include/macros.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/macros.inc b/include/macros.inc
new file mode 100644
index 0000000..7ab2dc5
--- /dev/null
+++ b/include/macros.inc
@@ -0,0 +1,11 @@
+farcall: macro
+ push af
+ ld a, LOW(\1)
+ ld [w_farcall_target + 0], a
+ ld a, HIGH(\1)
+ ld [w_farcall_target + 1], a
+ ld a, BANK(\1)
+ ld [w_bank_temp], a
+ pop af
+ call farcall
+endm