]> git.sur5r.net Git - cc65/blob - libsrc/pet/randomize.s
New randomize() function for nearly all platforms
[cc65] / libsrc / pet / randomize.s
1 ;
2 ; Ullrich von Bassewitz, 05.11.2002
3 ;
4 ; void randomize (void);
5 ; /* Initialize the random number generator */
6 ;
7
8         .export         _randomize
9         .import         _srand
10
11         .include        "pet.inc"
12
13 _randomize:
14         ldx     TIME
15         lda     TIME+1          ; Use 60HZ clock
16         jmp     _srand          ; Initialize generator
17