summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-10-04 14:39:27 -0400
committeryenatch <yenatch@gmail.com>2015-10-04 14:39:27 -0400
commit7176eff7aafda5378305a593c459d158ac27601f (patch)
tree85706da5f60a75f4a1aa8a12aa1b77638a538867 /macros.asm
parent2e74d969f700f7eda40a84a75dfe8b4183d09683 (diff)
parent2770cfc354b883f0e3f7e632374051ed9b5e936a (diff)
Merge pull request #311 from PikalaxALT/master
Bank 4 time functions moved out of main.asm
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 7ed3ecf36..4370886b2 100644
--- a/macros.asm
+++ b/macros.asm
@@ -104,6 +104,13 @@ dwcoord: MACRO
endr
ENDM
+ldcoord: MACRO
+ if _NARG < 3
+ ld [TileMap + SCREEN_WIDTH * (\2) + (\1)], a
+ else
+ ld [\3 + SCREEN_WIDTH * (\2) + (\1)], a
+ endc
+ ENDM
; pic animations
frame: MACRO