summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2015-03-01 16:37:41 -0800
committerMarcus Huderle <huderlem@gmail.com>2015-03-01 16:37:41 -0800
commit513cf38fa305d369cf5b792acbaf171a0543bcaf (patch)
treef64ee441c69176173821bd41f8cb9cd408bea0d3 /macros.asm
parent40d2ebd35024ccdbc73ec06ffdc90def7ce94bd3 (diff)
Dump initial High Scores data. Label high scores wram locations.
Diffstat (limited to 'macros.asm')
-rwxr-xr-xmacros.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 0cf0516..0b301bc 100755
--- a/macros.asm
+++ b/macros.asm
@@ -25,6 +25,17 @@ bigdw: MACRO ; big-endian word
dx 2, \1
ENDM
+bigBCD6: MACRO
+; There is probably a better name for this macro.
+; It write a BCD in big-endian form.
+ dn ((\1) / 10) % 10, (\1) % 10
+ dn ((\1) / 1000) % 10, ((\1) / 100) % 10
+ dn ((\1) / 100000) % 10, ((\1) / 10000) % 10
+ dn ((\1) / 10000000) % 10, ((\1) / 1000000) % 10
+ dn ((\1) / 1000000000) % 10, ((\1) / 100000000) % 10
+ dn ((\1) / 100000000000) % 10, ((\1) / 10000000000) % 10
+ ENDM
+
;\1 = X
;\2 = Y
;\3 = Reference Background Map (e.g. vBGMap0 or vBGMap1)