> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.6.18 #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 23 08:25:28 UTC 2024 x86_64 GNU/Linux 00:35:46 up 1 day 4:04, 2 users, load average: 0.25, 0.27, 0.21
This commit is contained in:
parent
e89e18811b
commit
2148f492f5
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +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);
|
||||
s->dnpc = s->pc + offset;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue