better printing

master
vhaudiquet 1 year ago
parent 980070b204
commit 21c85d0bec
  1. 4
      src/cpu/rv32cpu.c

@ -743,11 +743,11 @@ static void cpu_print_instruction(instruction_t* instruction)
{ {
case FUNC3_BEQ: case FUNC3_BEQ:
// Branch EQual // Branch EQual
printf("beq x%u, x%u, 0x%x\n", instruction->rs1, instruction->rs2, immediate); printf("beq x%u, x%u, %d\n", instruction->rs1, instruction->rs2, immediate);
break; break;
case FUNC3_BNE: case FUNC3_BNE:
// Branch Not Equal // Branch Not Equal
printf("bne x%u, x%u, 0x%x\n", instruction->rs1, instruction->rs2, immediate); printf("bne x%u, x%u, %d\n", instruction->rs1, instruction->rs2, immediate);
break; break;
case FUNC3_BLT: case FUNC3_BLT:
// Branch Less Than // Branch Less Than

Loading…
Cancel
Save