Re: [stella] Random Numbers

Subject: Re: [stella] Random Numbers
From: "Eric Ball" <ericball@xxxxxxxxxxxx>
Date: Wed, 28 Jan 2004 21:37:24 -0500
> Just make sure that you initialize random with a value != 0 at startup.

Minor enhancement to avoid the initialization problem:

NextRandom SUBROUTINE
     lda     random
     beq     .doEor
     lsr
     bcc     .skipEor
 .doEor:
     eor     #RAND_EOR_8
.skipEor:
     sta     random
     rts

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread