Re: [stella] Random number generation on 2600?

Subject: Re: [stella] Random number generation on 2600?
From: Piero Cavina <p.cavina@xxxxxxxxxxxxx>
Date: Mon, 24 Mar 1997 17:23:56 +0100 (MET)
At 02.17 24/03/97 GMT, Erik Mooney wrote:

>Any hints on how to go about creating a pseudo-random number generator on
>the 2600?

"Air sea battle" does something strange with VSYNC/VBLANK registers during
the screen kernel:

(...)
>LF0B2: LDA    $B2,X   ;4
>       STA    NUSIZ0  ;3
>       STA    REFP0   ;3
>       LDA    VSYNC   ;3
>       LSR    A       ;2
>       LSR    A       ;2
>       ORA    VBLANK  ;3
>       STA    $D9,X   ;4
(...)

I bet this has something to do with random numbers...

P.




--
Archives available at http://www.biglist.com/lists/stella/archives/
E-mail UNSUBSCRIBE in the body to stella-request@xxxxxxxxxxx to be removed.

Current Thread