Skip to content

Opcode F4 (PEA) Export mislabel #130

@Thaidakar16

Description

@Thaidakar16

PEA is weird... It only accepts an immediate value, but that immediate value is written as $1234 instead of #$1234. This is what ASAR expects, and for the most part, the export gets it:
PEA.W $0030
PEA.W $0003

however, if there happens to be pointer or a label at that location, the exporter treats it like any other address, and replaces it with a label:

PEA.W PTR16_80FFFF
PEA.W CODE_808C21

It should be PEA.W $FFFF and PEA.W $8C21, but because there is a pointer at $80FFFF and a label at $808C21, it incorrectly replaces them with a label.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions