pokered/home/random.asm

13 lines
167 B
NASM
Raw Normal View History

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