> 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:20:54 up 1 day, 13:11, 1 user, load average: 0.30, 0.25, 0.22
This commit is contained in:
@ -74,6 +74,13 @@ static WP* del_wp(WP* head, WP* pos) {
|
||||
|
||||
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
||||
|
||||
void show_wp() {
|
||||
printf("No. Expr\n");
|
||||
for (WP* tmp = head; tmp != NULL; tmp = tmp->next) {
|
||||
printf("%3d: %12s = "FMT_WORD"\n", tmp->NO, tmp->expr, tmp->val);
|
||||
}
|
||||
}
|
||||
|
||||
WP* new_wp(char* _expr, int len) {
|
||||
bool success = true;
|
||||
word_t val = expr(_expr, &success);
|
||||
|
Reference in New Issue
Block a user