Re: [stella] ASM comparison question

Subject: Re: [stella] ASM comparison question
From: "Dennis Debro" <dennis@xxxxxxxxxxxxxxx>
Date: Wed, 25 May 2005 12:38:48 -0400
Hi Brian,

> Does it absolutely *have* to be 9 to 149? If you can live with a
> range of 9 to 137, it's simple:
>  	jsr getRandomByte  ; byte is 0-255
>  	lsr a              ; now it's 0-127, carry may or may not be set
>  	adc #9             ; now it's 9-137, done
>  	sta whereever

I like this one. Sure the right side get's cheated but I'm okay with the
max here.

BTW, I don't know why my responses haven't been showing up. Then again
maybe they are and they're just not coming to me.

Thanks everyone for your help.

Take care,

Archives (includes files) at
Unsub & more at

Current Thread