mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
bbf2f51a02
This results in 64 home/*.asm files, comparable to pokecrystal's 57.
12 lines
167 B
NASM
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
|