pokeyellow/home/random.asm
2020-11-04 00:06:44 -06:00

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