Skip to content

Immediate value in hexadecimal when MSB is 1 gives error for Immediate instructions #139

@Ty-Greve

Description

@Ty-Greve

When using hexadecimal form of an immediate value with a MSB bit of 1 for immediate instructions, an error is thrown, even though both immediate values are 12-bits as the instruction specifies.
For example when attempting to assemble with an instruction such as: andi t0, a0, 0xF00

The error message is:

"0xF00": operand is out of range

However attempting to assemble this instruction andi t0, a0, -256 instead, is successful.

Screenshot (238)

I'm not sure if this issue is being worked on yet. I could try to work on this issue if no one else is working on this.

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