]> git.sur5r.net Git - cc65/blob - libsrc/atari/randomize.s
atari: split color.s into bordercolor.s and bgcolor.s
[cc65] / libsrc / atari / randomize.s
1 ;
2 ; Christian Groessler, 06.11.2002
3 ;
4 ; void _randomize (void);
5 ; /* Initialize the random number generator */
6 ;
7
8         .export         __randomize
9         .import         _srand
10
11         .include        "atari.inc"
12
13 __randomize:              
14         ldx     VCOUNT          ; Use vertical line counter as high byte
15         lda     RTCLOK+2        ; Use clock as low byte
16         jmp     _srand          ; Initialize generator
17