2002-11-05 10:48:20 +00:00
|
|
|
;
|
2015-09-11 14:03:07 +00:00
|
|
|
; 2002-11-05, Ullrich von Bassewitz
|
|
|
|
; 2015-09-11, Greg King
|
2002-11-05 10:48:20 +00:00
|
|
|
;
|
2022-08-29 18:52:35 +00:00
|
|
|
; void __randomize (void);
|
2002-11-05 10:48:20 +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-05 10:48:20 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "c128.inc"
|
2002-11-05 10:48:20 +00:00
|
|
|
|
2022-08-29 18:52:35 +00:00
|
|
|
___randomize:
|
2002-11-05 10:48:20 +00:00
|
|
|
ldx VIC_HLINE ; Use VIC rasterline as high byte
|
2015-09-11 14:03:07 +00:00
|
|
|
lda TIME+2 ; Use 60HZ clock as low byte
|
2002-11-05 10:48:20 +00:00
|
|
|
jmp _srand ; Initialize generator
|
|
|
|
|