Skip to content

Hi/Lo directives unavailable #49

@aMelliflousOne

Description

@aMelliflousOne

When working with code compiled by GCC, these directives come up very frequently. Besides, they're just naturally very useful when dealing with labels, especially.

Their only impact is in the preprocessing stage, as they resolve to literal values. Nothing in the simulation/execution would be changed.

RARS handles these directives as expected.

Example:

   [error]: Expected an immediate value, but found '%hi'
   --> asm/root.c.s at line 284, column 16
284 |   lui     s4,%hi(font8x8_basic) 
....................^ Here
285 |   j       L19             #

   [tip]: Some immediate values are: 10, -10, 0xffaabbcc, 0b101 and 'a'

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