mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 06:58:24 +00:00
13 lines
167 B
NASM
13 lines
167 B
NASM
|
Random::
|
||
|
; Return a random number in a.
|
||
|
; For battles, use BattleRandom.
|
||
|
push hl
|
||
|
push de
|
||
|
push bc
|
||
|
farcall Random_
|
||
|
ldh a, [hRandomAdd]
|
||
|
pop bc
|
||
|
pop de
|
||
|
pop hl
|
||
|
ret
|