mirror of https://github.com/pret/pokecrystal.git
Nested union for the Multiply+Divide inputs+results
This commit is contained in:
parent
557ce82073
commit
f8bebd4d27
32
hram.asm
32
hram.asm
|
@ -62,38 +62,36 @@ ENDU ; ffb1
|
||||||
hEnemyMonSpeed:: dw ; ffb1
|
hEnemyMonSpeed:: dw ; ffb1
|
||||||
|
|
||||||
UNION ; ffb3
|
UNION ; ffb3
|
||||||
; miscellaneous
|
; math-related values
|
||||||
ds 9
|
|
||||||
hMGStatusFlags:: db ; ffbc
|
|
||||||
|
|
||||||
NEXTU ; ffb3
|
UNION ; ffb3
|
||||||
; inputs to Multiply
|
; inputs to Multiply
|
||||||
ds 1
|
ds 1
|
||||||
hMultiplicand:: ds 3 ; ffb4
|
hMultiplicand:: ds 3 ; ffb4
|
||||||
hMultiplier:: db ; ffb7
|
hMultiplier:: db ; ffb7
|
||||||
|
|
||||||
NEXTU ; ffb3
|
NEXTU ; ffb3
|
||||||
; result of Multiply
|
; result of Multiply
|
||||||
hProduct:: ds 4 ; ffb3
|
hProduct:: ds 4 ; ffb3
|
||||||
|
|
||||||
NEXTU ; ffb3
|
NEXTU ; ffb3
|
||||||
; inputs to Divide
|
; inputs to Divide
|
||||||
hDividend:: ds 4 ; ffb3
|
hDividend:: ds 4 ; ffb3
|
||||||
hDivisor:: db ; ffb7
|
hDivisor:: db ; ffb7
|
||||||
|
|
||||||
NEXTU ; ffb3
|
NEXTU ; ffb3
|
||||||
; results of Divide
|
; results of Divide
|
||||||
hQuotient:: ds 4 ; ffb3
|
hQuotient:: ds 4 ; ffb3
|
||||||
hRemainder:: db ; ffb7
|
hRemainder:: db ; ffb7
|
||||||
|
ENDU ; ffb8
|
||||||
|
|
||||||
NEXTU ; ffb3
|
|
||||||
; math-related scratch space
|
|
||||||
ds 5
|
|
||||||
hMathBuffer:: ds 5 ; ffb8
|
hMathBuffer:: ds 5 ; ffb8
|
||||||
|
|
||||||
NEXTU ; ffb3
|
NEXTU ; ffb3
|
||||||
; PrintNum scratch space
|
; PrintNum scratch space
|
||||||
hPrintNumBuffer:: ds 10 ; ffb3
|
hPrintNumBuffer:: ds 10 ; ffb3
|
||||||
|
|
||||||
|
NEXTU ; ffb3
|
||||||
|
; miscellaneous
|
||||||
|
ds 9
|
||||||
|
hMGStatusFlags:: db ; ffbc
|
||||||
ENDU ; ffbd
|
ENDU ; ffbd
|
||||||
|
|
||||||
hUsedSpriteIndex:: db ; ffbd
|
hUsedSpriteIndex:: db ; ffbd
|
||||||
|
|
Loading…
Reference in New Issue