pokered/home/random.asm
Rangi bbf2f51a02 Move all code out of home.asm into home/
This results in 64 home/*.asm files, comparable to pokecrystal's 57.
2020-07-07 19:43:11 -04:00

12 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