> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.71 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan 5 14:18:41 UTC 2024 x86_64 GNU/Linux 23:35:32 up 2 days 12:30, 2 users, load average: 0.30, 0.35, 0.36
This commit is contained in:
parent
5c6c03272c
commit
3ec0c3a635
1 changed files with 1 additions and 1 deletions
|
@ -13,11 +13,11 @@
|
||||||
$[a-zA-Z]{2,3} {
|
$[a-zA-Z]{2,3} {
|
||||||
puts(yytext);
|
puts(yytext);
|
||||||
yylval = isa_reg_str2val(yytext + 1, &success);
|
yylval = isa_reg_str2val(yytext + 1, &success);
|
||||||
printf("yylval = %d\n", yylval);
|
|
||||||
if(!success) {
|
if(!success) {
|
||||||
yyerror(NULL, "Failed to convert reg to value");
|
yyerror(NULL, "Failed to convert reg to value");
|
||||||
return YYerror;
|
return YYerror;
|
||||||
}
|
}
|
||||||
|
return REGISTER;
|
||||||
}
|
}
|
||||||
[+\-*/()] { return *yytext; }
|
[+\-*/()] { return *yytext; }
|
||||||
[ \t] { }
|
[ \t] { }
|
||||||
|
|
Loading…
Reference in a new issue