Skip to content

define does not work well for addresses over $ff #31

@iznax

Description

@iznax

This code looks reasonable.

define Screen $200

LDY #$21
LDA #1
STA Screen,Y ; this works

LDA #<Screen
STA $2
LDA #>Screen
STA $3
LDA #4
STA ($2),Y ; this does not work

but the #> and #< both always appear to generate #0 constants

If you define the label as a memory address it does work, but this really should be equivalent.

*= $200
Screen:

this was the standard behavior of the EQU directive in most assemblers

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