Re: [stella] need 16-bit math for JoustPong?

Subject: Re: [stella] need 16-bit math for JoustPong?
From: Glenn Saunders <mos6507@xxxxxxxxxxx>
Date: Mon, 02 Feb 2004 20:50:20 -0800
At 07:49 PM 2/2/2004, you wrote:

My preference is to have the variable names distinct so XPOSI & XPOSF or
some variation thereof.  I also typically have all of the XPOSIs together so
I can use XPOSI,X in a loop.

I always align my variables based on player index.


CAR0_X ds 1
CAR1_X ds 1

That way it's much easier to write general-purpose routines that manage variables by passing in a 1 or 0 into the X register and addressing these variables as CAR0_X,X.

---------------------------------------------------------------------------------------------- Archives (includes files) at Unsub & more at

Current Thread