From 570d2ab1cf6576a77a801001ef2e7caa5d034828 Mon Sep 17 00:00:00 2001 From: yenatch Date: Fri, 16 Aug 2013 22:35:31 -0400 Subject: [PATCH] dt: three-byte value used for pokemon exp --- constants.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/constants.asm b/constants.asm index 02f402bcb..e929a48f2 100644 --- a/constants.asm +++ b/constants.asm @@ -36,6 +36,12 @@ dn: MACRO db \1 << 4 + \2 ENDM +dt: MACRO ; three-byte (big-endian) + db (\1 >> 16) & $ff + db (\1 >> 8) & $ff + db \1 & $ff + ENDM + bigdw: MACRO ; big-endian word dw ((\1)/$100) + (((\1)&$ff)*$100) ENDM