Re: [cc65] DA65 GEOS Disassembly?

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-10-28 09:36:09


Hi!

On Tue, Oct 28, 2003 at 01:05:04AM +1030, Todd Elliott wrote:
> Somehow, the disassembler mistakenly thinks that this is a zero page
> location, while being addressed in an absolute fashion, should be used in
> a zero page addressing mode.

Actually, the disassembler knows about the absolute mode, but it's the
assembler that translates

        lda     $00,x
and     lda     $0000,x

both as zero page. The assembler looks at the actual number, not at the number
of digits that are used to represent it, and since 0 is smaller than $100, it
is translated as zero page.

What would be necessary is that the disassembler adds an address mode override
prefix if the mode is absolute, but there's a matching zero page addressing
mode. I will look for a fix, but since 2.9 doesn't know address mode
overrides, it will not be added to this version.

Thanks for the feedback!

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-28 09:37:15 CET