Skip to content

Support for arithmetic shift expressions #12

Description

@RikkiGibson

When masking specific bits, it's handy to be able to write things in terms of shift expressions:

ld var1
and #(1 << 3) ; mask out bit 3 of 'var1'
st var2

But waterbear reports an error like the following for such programs:

[ERROR] Failed to assemble shift.s

✘ Expected to find ')'

shift.s:1:8-9
  and #(1 << 3)
          ^

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