diff options
Diffstat (limited to 'constants.asm')
-rw-r--r-- | constants.asm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/constants.asm b/constants.asm index 6338441b..598dd888 100644 --- a/constants.asm +++ b/constants.asm @@ -47,6 +47,16 @@ RGB: MACRO ENDM ; text macros +TX_NUM: MACRO +; print a big-endian decimal number. +; \1: address to read from +; \2: number of bytes to read +; \3: number of digits to display + db $09 + dw \1 + db \2 << 4 | \3 + ENDM + TX_FAR: MACRO db $17 dw \1 @@ -84,6 +94,10 @@ W_CURENEMYLVL EQU $D127 W_ISLINKBATTLE EQU $D12B +W_PLAYERNAME EQU $D158 ; 11 characters, including null + +W_RIVALNAME EQU $D34A ; 11 characters, including null + W_CURMAP EQU $D35E W_YCOORD EQU $D361 ; player’s position on the current map |