Prev: D29D Up: Map Next: D2AD
D2A4: Random Number
Calls ScaleTheRoll to scale the roll, and makes the result negative when bit 7 is set.
GetRandomNumber D2A4 CALL ScaleTheRoll Call ScaleTheRoll to scale the roll, and return if bit 7 is clear.
D2A7 BIT 7,A
D2A9 RET Z
D2AA NEG Make the result negative.
D2AC RET Return.
View the equivalent code in;
Prev: D29D Up: Map Next: D2AD