From 7069593eeba657581732b1bc0c895ca66f590f04 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Tue, 24 Jan 2012 14:20:31 -0800 Subject: added some comments and added multiply/divide constants hg-commit-id: fb230f02d2ca --- constants.asm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'constants.asm') 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 -- cgit v1.3.1-sl0p