aboutsummaryrefslogtreecommitdiffstats
path: root/home/print_num.asm
diff options
context:
space:
mode:
authorvulcandth <vulcandth@gmail.com>2022-06-06 16:25:31 -0500
committerGitHub <noreply@github.com>2022-06-06 17:25:31 -0400
commit6b5be9129cabe72b9f775b02db1bf7e7169153da (patch)
treed92012450c70f90bf8086bed32ec3dc87b68b332 /home/print_num.asm
parentImproved Virtual Console patch identifiers (#357) (diff)
downloadpokeyellow-6b5be9129cabe72b9f775b02db1bf7e7169153da.tar.gz
pokeyellow-6b5be9129cabe72b9f775b02db1bf7e7169153da.tar.xz
pokeyellow-6b5be9129cabe72b9f775b02db1bf7e7169153da.zip
RGBDS syntax updates (#358)
New MACRO and DEF syntax
Diffstat (limited to 'home/print_num.asm')
-rw-r--r--home/print_num.asm22
1 files changed, 11 insertions, 11 deletions
diff --git a/home/print_num.asm b/home/print_num.asm
index e2628b1f..ef202239 100644
--- a/home/print_num.asm
+++ b/home/print_num.asm
@@ -59,20 +59,20 @@ PrintNumber::
cp 6
jr z, .hundred_thousands
-print_digit: MACRO
+MACRO print_digit
-IF (\1) / $10000
- ld a, \1 / $10000 % $100
-ELSE
- xor a
-ENDC
+ IF (\1) / $10000
+ ld a, \1 / $10000 % $100
+ ELSE
+ xor a
+ ENDC
ldh [hPowerOf10 + 0], a
-IF (\1) / $100
- ld a, \1 / $100 % $100
-ELSE
- xor a
-ENDC
+ IF (\1) / $100
+ ld a, \1 / $100 % $100
+ ELSE
+ xor a
+ ENDC
ldh [hPowerOf10 + 1], a
ld a, \1 / $1 % $100