> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 14:00:21 up 1 day, 12:50,  1 user,  load average: 0.20, 0.21, 0.20
This commit is contained in:
tracer-ics2023
2024-09-01 14:00:22 +08:00
committed by zzy
parent e7c8175433
commit 9856caaeb1

View File

@ -117,7 +117,7 @@ static int cmd_p(char *args) {
bool success = false;
word_t res = expr(args, &success);
if (success) {
printf("$res = %"PRId32", %"PRIu32", %"PRIx32"\n", res, res, res);
printf("$res = d%"PRId32", u%"PRIu32", 0x%"PRIx32"\n", res, res, res);
} else {
printf("Invalid expression\n");
}