binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Fix RISC-V CSRRW, CSRRS, and CSRRC instr disass

Open pdietl opened this issue 1 year ago • 1 comments

Make the CSR instructions show the CSR 12-bit immediate operand as an unsigned integer. This is a special case of the I-instruction format, where it is same except that the 12-bit immediate is treated as unsigned rather than signed.

pdietl avatar Feb 18 '24 22:02 pdietl

@D0ntPanic here I only change the interpretation of the CSR number as unsigned rather than signed. My other PR where I changed the order in which the operands are displayed was incorrect, at least compared to how the GNU assembler expects the instruction operands.

pdietl avatar Feb 18 '24 22:02 pdietl