diff options
| author | YamaArashi <shadow962@live.com> | 2012-01-24 14:20:31 -0800 |
|---|---|---|
| committer | YamaArashi <shadow962@live.com> | 2012-01-24 14:20:31 -0800 |
| commit | 7069593eeba657581732b1bc0c895ca66f590f04 (patch) | |
| tree | fef02ee63668611930c48661e33ef952a47b5fcb /constants.asm | |
| parent | update gbz80disasm to find labels better (diff) | |
| download | pokeyellow-7069593eeba657581732b1bc0c895ca66f590f04.tar.gz pokeyellow-7069593eeba657581732b1bc0c895ca66f590f04.tar.xz pokeyellow-7069593eeba657581732b1bc0c895ca66f590f04.zip | |
added some comments and added multiply/divide constants
hg-commit-id: fb230f02d2ca
Diffstat (limited to 'constants.asm')
| -rw-r--r-- | constants.asm | 12 |
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 |
