mortbopet / Ripes

A graphical processor simulator and assembly editor for the RISC-V ISA

Home Page:https://ripes.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hexadecimel constants are treated as unsigned numbers

RatkoFri opened this issue · comments

Hexadecimal constants are treated as unsigned numbers, which prevents users to run this instruction:

addi x2, x0, 0xAFF

Although the hexadecimal value is 12bit, the Ripes will interpret it as an unsigned number which is out of range for a 12bit signed number (2nd complement). The Ripes will prevent this code for executing