Skip to content

Indexed addressing mode on 24bit misassembly #33

Description

@fachat

There is one problem as seen in fachat/upet_ioext@aa628d0
where this code
62 A:043d 9f 00 00 01 sta IOEXT_BASE+BANK<<15,x
is misassembled.

The opcode seems to be right ($9f = abs long x-indexed https://undisbeliever.net/snesdev/65816-opcodes.html#sta-store-accumulator-to-memory )
But the address is not. It should be $77000, as BANK is 14, and IOEXT_BASE is $7000

Both variables are defined already in pass1 before that place (so should be known)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions