From 582fa012796ba1a75f88ff3f95d3cfa779016b3c Mon Sep 17 00:00:00 2001 From: IIMarckus Date: Tue, 27 Dec 2011 16:31:22 -0700 Subject: =?UTF-8?q?Expand=20some=20already=E2=80=90referenced=20text.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hg-commit-id: d2cf570756e9 --- constants.asm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'constants.asm') 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 -- cgit v1.2.3