diff --git a/nemu/src/isa/riscv32/inst.c b/nemu/src/isa/riscv32/inst.c index e351270..4758b0f 100644 --- a/nemu/src/isa/riscv32/inst.c +++ b/nemu/src/isa/riscv32/inst.c @@ -53,7 +53,7 @@ static void decode_operand(Decode *s, int *rd, word_t *src1, word_t *src2, word_ static void do_branch(Decode *s, bool condition, word_t offset) { if (condition) { - printf("offset: %d", offset); + printf("offset: %u %d", offset, offset); s->dnpc = s->pc + offset; } }