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