1 2 3 4 5 6
require_extension('C'); if (insn.rvc_rd() == 0) { // c.addi16sp WRITE_REG(X_SP, sext_xlen(RVC_SP + insn.rvc_addi16sp_imm())); } else { WRITE_RD(insn.rvc_imm() << 12); }