2002-11-06 22:21:15 +00:00
|
|
|
;
|
|
|
|
; Christian Groessler, 06.11.2002
|
|
|
|
;
|
2022-08-29 18:52:35 +00:00
|
|
|
; void __randomize (void);
|
2002-11-06 22:21:15 +00:00
|
|
|
; /* Initialize the random number generator */
|
|
|
|
;
|
|
|
|
|
2022-08-29 18:52:35 +00:00
|
|
|
.export ___randomize
|
2013-05-09 11:56:54 +00:00
|
|
|
.import _srand
|
2002-11-06 22:21:15 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "atari.inc"
|
2002-11-06 22:21:15 +00:00
|
|
|
|
2022-08-29 18:52:35 +00:00
|
|
|
___randomize:
|
2013-05-09 11:56:54 +00:00
|
|
|
ldx VCOUNT ; Use vertical line counter as high byte
|
|
|
|
lda RTCLOK+2 ; Use clock as low byte
|
|
|
|
jmp _srand ; Initialize generator
|
2002-11-06 22:21:15 +00:00
|
|
|
|