Skip to content

jump to namespaced label forces absolute addressing #505

@Wuerfel21

Description

@Wuerfel21
DAT
        orgh $1000
        jmp #label

        orgh
label
        jmp #$

vs.

DAT
        orgh $1000
        jmp #foo.label

%namesp foo
        orgh
label
        jmp #$

These should compile to same binary, but don't.
Hubexec absolute addressing doesn't work in non-pure ASM programs, so this causes a correctness issue.
(The jmp #$ in this example is also always absolute for unknown reasons, but that seems like a separate issue. Using jmp #label does the expected.)

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