RE: Aw: [stella] X or Y ?

Subject: RE: Aw: [stella] X or Y ?
From: "Erik Mooney" <erik@xxxxxxxxxx>
Date: Thu, 15 Apr 2004 10:01:32 -0500
cybergoth@xxxxxxxx wrote:

> There's no "absolute zeropage" adressing mode to some instructions using Y, so the code rendered in those cases will force an absolute 16-Bit adressing padded with "00" for the HI-Byte and so wasting an extra byte.

Actually, the _only_ instructions that can do an 8-bit zeropage address
with a Y index, are LDX and STX.  Everything else always uses a 16-bit
address if indexing with Y (DASM will silently do that for you.)  It takes the same 4 cycles in either mode, so it doesn't matter except
for the one extra byte of ROM.
----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread
  • Aw: [stella] X or Y ?
    • cybergoth - Thu, 15 Apr 2004 06:32:06 -0400 (EDT)
      • happy_dude - Thu, 15 Apr 2004 07:23:23 -0400 (EDT)
      • <Possible follow-ups>
      • Erik Mooney - Thu, 15 Apr 2004 11:02:09 -0400 (EDT) <=
        • Eric Ball - Thu, 15 Apr 2004 17:26:00 -0400 (EDT)