better printing

This commit is contained in:
vhaudiquet 2023-10-08 19:09:12 +02:00
parent 980070b204
commit 21c85d0bec

View File

@ -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