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:
// 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;
case FUNC3_BNE:
// 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;
case FUNC3_BLT:
// Branch Less Than

Loading…
Cancel
Save