summaryrefslogtreecommitdiff
path: root/constants.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2012-01-24 14:20:31 -0800
committerYamaArashi <shadow962@live.com>2012-01-24 14:20:31 -0800
commit7069593eeba657581732b1bc0c895ca66f590f04 (patch)
treefef02ee63668611930c48661e33ef952a47b5fcb /constants.asm
parentd2f4073eb9b8a39c2356be0de10867aabe95dd3a (diff)
added some comments and added multiply/divide constants
hg-commit-id: fb230f02d2ca
Diffstat (limited to 'constants.asm')
-rw-r--r--constants.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/constants.asm b/constants.asm
index 4a76c2ae..4f1df3d0 100644
--- a/constants.asm
+++ b/constants.asm
@@ -699,6 +699,18 @@ W_BOXITEM50QTY EQU $D59E
W_SAFARITIMER1 EQU $D70D ; use 01 for maximum
W_SAFARITIMER2 EQU $D70E ; use F4 for maximum
+; Note: the following multiplication and division addresses are used for multiple purposes
+; and so they overlap with each other
+
+H_MULTIPLICAND EQU $FF96 ; 3 bytes, big endian order
+H_MULTIPLIER EQU $FF99 ; 1 byte
+H_PRODUCT EQU $FF95 ; 4 bytes, big endian order
+
+H_DIVIDEND EQU $FF95 ; 4 bytes, big endian order
+H_DIVISOR EQU $FF99 ; 1 byte
+H_QUOTIENT EQU $FF95 ; 4 bytes, big endian order
+H_REMAINDER EQU $FF99 ; 1 byte
+
H_RAND1 EQU $FFD3
H_RAND2 EQU $FFD4