diff --git a/nemu/src/isa/riscv32/inst.c b/nemu/src/isa/riscv32/inst.c index 4758b0f..33ad44e 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: %u %d", offset, offset); + printf("offset: %x %d\n", offset, offset); s->dnpc = s->pc + offset; } }