diff --git a/nemu/src/monitor/sdb/addrexp.y b/nemu/src/monitor/sdb/addrexp.y index 56eb344..f83733d 100644 --- a/nemu/src/monitor/sdb/addrexp.y +++ b/nemu/src/monitor/sdb/addrexp.y @@ -43,8 +43,8 @@ expression | '(' expression ')' { $$ = $2; } number - : NUMBER - | REGISTER { $$ = $1; } + : REGISTER { $$ = $1; } + | NUMBER | HEX_NUMBER %%