|
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [stella] Random Numbers, Thomas Jentzsch | Thread | [stella] Sprites - AAAAARGH!, David Davies |
| Re: [stella] need 16-bit math for J, Andrew Davie | Date | Re: [stella] Double line resolution, Eric Ball |
| Month |