Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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