summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-03-03 17:19:27 -0500
committeryenatch <yenatch@gmail.com>2015-03-03 17:19:27 -0500
commit275780271e040761b7d15dba2258f2b5a42d5c4c (patch)
tree8f2fbcc7274167f2b2c589c3fb871c5e654d893a /macros
parent59434fbe4dccc98f29a152f8c929618c812b5b6e (diff)
Use a macro instead of manually subtracting $36 from pic banks.
Diffstat (limited to 'macros')
-rw-r--r--macros/pic.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/pic.asm b/macros/pic.asm
new file mode 100644
index 000000000..a01ce7a31
--- /dev/null
+++ b/macros/pic.asm
@@ -0,0 +1,4 @@
+add_pic: MACRO
+ db BANK(\1) - $36
+ dw \1
+ENDM