diff --git a/nemu/src/monitor/sdb/addrexp.y b/nemu/src/monitor/sdb/addrexp.y index 344f141..7c776cb 100644 --- a/nemu/src/monitor/sdb/addrexp.y +++ b/nemu/src/monitor/sdb/addrexp.y @@ -26,7 +26,7 @@ expression | expression '-' expression { $$ = $1 - $3; } | expression '*' expression { $$ = $1 * $3; } | expression '/' expression { $$ = $1 / $3; } - | '-' number { $$ = -$2; } + // | '-' number { $$ = -$2; } | '(' expression ')' { $$ = $2; } number