Aw: [stella] ASM comparison question

Subject: Aw: [stella] ASM comparison question
From: cybergoth@xxxxxxxx
Date: Wed, 25 May 2005 10:22:58 -0400
Hi Dennis!

> I've looked at this for so long that maybe I can't see the forest for the
> trees. Sometimes I'm getting a number out of the range. Should this work?

Could you possibly try this code:

GetNextByte
   jsr RandomByte            ; get a random number
   cmp #255-(149-9)        ; within a range of 140 different numbers?
   bcs GetNextByte
   adc #149                     ; shift it in place

No clue if it works, maybe just a silly idea...
(maybe bcc instead of bcs?)

Greetings,
Manuel

Machen Sie aus 14 Cent spielend bis zu 100 Euro!
Die neue Gaming-Area von Arcor - |ber 50 Onlinespiele im Angebot.
http://www.arcor.de/rd/emf-gaming-1
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://stella.biglist.com

Current Thread