diff --git a/libsrc/atari/Makefile b/libsrc/atari/Makefile index 9b1549f33..afc4e7c9c 100644 --- a/libsrc/atari/Makefile +++ b/libsrc/atari/Makefile @@ -50,6 +50,7 @@ OBJS = _scrsize.o \ oserrlist.o \ oserror.o \ ostype.o \ + randomize.o \ read.o \ readjoy.o \ remove.o \ diff --git a/libsrc/atari/randomize.s b/libsrc/atari/randomize.s new file mode 100644 index 000000000..067bcc151 --- /dev/null +++ b/libsrc/atari/randomize.s @@ -0,0 +1,17 @@ +; +; Christian Groessler, 06.11.2002 +; +; void _randomize (void); +; /* Initialize the random number generator */ +; + + .export __randomize + .import _srand + + .include "atari.inc" + +__randomize: + ldx VCOUNT ; Use vertical line counter as high byte + lda RTCLOK+2 ; Use clock as low byte + jmp _srand ; Initialize generator +