From: cpg Date: Wed, 6 Nov 2002 22:21:15 +0000 (+0000) Subject: added randomize X-Git-Tag: V2.12.0~2138 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=82696446fcbe73db79dbeee9d5ad6d5d44bfd1f0;p=cc65 added randomize git-svn-id: svn://svn.cc65.org/cc65/trunk@1494 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 +