mirror of
https://github.com/pret/pokered.git
synced 2026-09-26 13:22:55 -04:00
bbf2f51a02
This results in 64 home/*.asm files, comparable to pokecrystal's 57.
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
|