> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.75 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 25 23:27:52 UTC 2024 x86_64 GNU/Linux 22:46:13 up 4:47, 2 users, load average: 0.10, 0.16, 0.13
This commit is contained in:
parent
5233b02844
commit
6b9ae21fc6
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ expression
|
||||||
}
|
}
|
||||||
| '-' number { $$ = -$2; }
|
| '-' number { $$ = -$2; }
|
||||||
| '*' expression {
|
| '*' expression {
|
||||||
printf("deref: %u\n", $2);
|
printf("deref: %u - %u\n", $2, vaddr_read($2, WORD_BYTES));
|
||||||
$$ = vaddr_read($2, WORD_BYTES);
|
$$ = vaddr_read($2, WORD_BYTES);
|
||||||
}
|
}
|
||||||
| '(' expression ')' { $$ = $2; }
|
| '(' expression ')' { $$ = $2; }
|
||||||
|
|
Loading…
Reference in a new issue