You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Nested union for the Multiply+Divide inputs+results
This commit is contained in:
18
hram.asm
18
hram.asm
@@ -62,38 +62,36 @@ ENDU ; ffb1
|
||||
hEnemyMonSpeed:: dw ; ffb1
|
||||
|
||||
UNION ; ffb3
|
||||
; miscellaneous
|
||||
ds 9
|
||||
hMGStatusFlags:: db ; ffbc
|
||||
; math-related values
|
||||
|
||||
NEXTU ; ffb3
|
||||
UNION ; ffb3
|
||||
; inputs to Multiply
|
||||
ds 1
|
||||
hMultiplicand:: ds 3 ; ffb4
|
||||
hMultiplier:: db ; ffb7
|
||||
|
||||
NEXTU ; ffb3
|
||||
; result of Multiply
|
||||
hProduct:: ds 4 ; ffb3
|
||||
|
||||
NEXTU ; ffb3
|
||||
; inputs to Divide
|
||||
hDividend:: ds 4 ; ffb3
|
||||
hDivisor:: db ; ffb7
|
||||
|
||||
NEXTU ; ffb3
|
||||
; results of Divide
|
||||
hQuotient:: ds 4 ; ffb3
|
||||
hRemainder:: db ; ffb7
|
||||
ENDU ; ffb8
|
||||
|
||||
NEXTU ; ffb3
|
||||
; math-related scratch space
|
||||
ds 5
|
||||
hMathBuffer:: ds 5 ; ffb8
|
||||
|
||||
NEXTU ; ffb3
|
||||
; PrintNum scratch space
|
||||
hPrintNumBuffer:: ds 10 ; ffb3
|
||||
|
||||
NEXTU ; ffb3
|
||||
; miscellaneous
|
||||
ds 9
|
||||
hMGStatusFlags:: db ; ffbc
|
||||
ENDU ; ffbd
|
||||
|
||||
hUsedSpriteIndex:: db ; ffbd
|
||||
|
Reference in New Issue
Block a user