issues
search
TheThirdOne
/
rars
RARS -- RISC-V Assembler and Runtime Simulator
Other
1.18k
stars
217
forks
source link
Adapt the four PrintInt method for RV64
#193
Closed
privat
closed
2 months ago
privat
commented
1 year ago
Added:
PrintInt and PrintIntUnsigned handle the long register values in RV64 mode
PrintIntHex and PrintIntBinary also add more leading digits in RV64 mode
Implementation note:
For signed representation (PrintInt),
Long.toString
(since Java8) can handle both RV32 and RV64.
The three other syscalls rely on an unsigned representation, it's simpler to have an
if
and use the correct int or long version.
Tests are also added
Added:
Implementation note:
Long.toString
(since Java8) can handle both RV32 and RV64.if
and use the correct int or long version.Tests are also added