Skip to content

Make "instruction at odd address" error trigger less often #30

@sikthehedgehog

Description

@sikthehedgehog

I accidentally misaligned something and got an "Warning: Instruction is at an odd address." error, but the problem is that it triggered for every instruction that followed the misalignment and it made it impossible to figure out from it which line caused it because I couldn't scroll back the terminal far back enough (there were more errors than fit the scroll buffer).

Ideally when the assembler detects consecutive misaligned instructions (or word-sized data), it should trigger the error only once for all of them (i.e. don't trigger it again until it finds at least one not misaligned word in-between). Maybe report the total count at the end, but definitely not spam that many errors for what is essentially one mistake.

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