]> git.sur5r.net Git - cc65/blob - libsrc/c64/randomize.s
Merge pull request #281 from polluks/sp65
[cc65] / libsrc / c64 / randomize.s
1 ;
2 ; 2002-11-05, Ullrich von Bassewitz
3 ; 2015-09-11, Greg King
4 ;
5 ; void _randomize (void);
6 ; /* Initialize the random number generator */
7 ;
8
9         .export         __randomize
10         .import         _srand
11
12         .include        "c64.inc"
13
14 __randomize:              
15         ldx     VIC_HLINE       ; Use VIC rasterline as high byte
16         lda     TIME+2          ; Use 60HZ clock as low byte
17         jmp     _srand          ; Initialize generator
18