2002-11-10 15:48:57 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 05.11.2002
|
|
|
|
;
|
|
|
|
; void _randomize (void);
|
|
|
|
; /* Initialize the random number generator */
|
|
|
|
;
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.export __randomize
|
|
|
|
.import _srand
|
2002-11-10 15:48:57 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.include "geossym.inc"
|
2002-11-10 15:48:57 +00:00
|
|
|
|
|
|
|
__randomize:
|
2013-05-09 13:56:54 +02:00
|
|
|
lda random ; get random value from internal generator
|
|
|
|
ldx random+1
|
|
|
|
jmp _srand ; and use it as seed
|