onnimikki Community Member

  • Member since Jun 27th 2024

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • onnimikki -

    Replied to the thread [SOLVED] RISC-V Assembler : why are hex literals illegal?.

    Post
    Never mind... my mistake... it's not that the hex literal is illegal... it's that it's too large... forgot that there are a limited number of bits permitted with the addi operation... and that li is a pseudo-operation that gets expanded into a lui and…
  • onnimikki -

    Posted the thread [SOLVED] RISC-V Assembler : why are hex literals illegal?.

    Thread
    I'm trying to include some assembler code in a RISC-V project and am running into some weirdness. Hex literals are not working with an "add immediate" (addi), but base ten and binary literals do. Here are a few lines: Source Code (5 lines) Not sure…