mirror of
https://github.com/cc65/cc65.git
synced 2024-11-07 21:10:15 +00:00
21 lines
236 B
ArmAsm
21 lines
236 B
ArmAsm
|
;
|
||
|
; Maciej 'YTM/Elysium' Witkowiak, 15.07.2001
|
||
|
;
|
||
|
;
|
||
|
; int rand (void);
|
||
|
; void srand (unsigned seed);
|
||
|
;
|
||
|
.export _rand, _srand
|
||
|
.include "../inc/jumptab.inc"
|
||
|
|
||
|
.code
|
||
|
|
||
|
_rand:
|
||
|
jsr GetRandom
|
||
|
pha
|
||
|
jsr GetRandom
|
||
|
tax
|
||
|
pla
|
||
|
_srand:
|
||
|
rts
|