Subject: Re: [stella] Random seed From: Fabrizio Zavagli <fabrizio.zavagli@xxxxxxxxx> Date: Thu, 14 Apr 2005 14:30:00 -0400 |
On 4/14/05, Bob Montgomery <BobM@xxxxxxxxxxx> wrote: > "... but I keep getting the same values from INTIM each time I run the binary! :(" > > What value(s) do you get? On z26 (decimal values in brackets): With single WSYNC method: TIM1T = $45 (76) gives INTIM = $15 (21) TIM1T = $54 (86) gives INTIM = $1f (31) With VBLANK: TIM1T = $45 (76) gives INTIM = $2e (46) TIM1T = $54 (86) gives INTIM = $38 (56) The values for TIM1T I've experimented with are just basically random (76 and 86). With the VBLANK the timer likely wraps, but I think that's of minor relevance at this stage... On the real hardware I don't have the exact numbers at the moment, but I use the seed value to set the background (the power of laziness) and it comes up in the same color each time! If helpful, I can clean up a bit the currently very messy source and post it! Thanks and ciao, Fabrizio.- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://stella.biglist.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [stella] Random seed, Bob Montgomery | Thread | [stella] 2600 frying, Fred Quimby |
RE: [stella] Random seed, Bob Montgomery | Date | Re: [stella] Random seed, Dennis Debro |
Month |