diff options
Diffstat (limited to 'src/cmd/8a/a.y')
-rw-r--r-- | src/cmd/8a/a.y | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cmd/8a/a.y b/src/cmd/8a/a.y index a8ac773da..f1881808f 100644 --- a/src/cmd/8a/a.y +++ b/src/cmd/8a/a.y @@ -210,6 +210,13 @@ spec3: /* JMP/CALL */ $$.from = nullgen; $$.to = $1; } +| '*' nam + { + $$.from = nullgen; + $$.to = $2; + $$.to.index = $2.type; + $$.to.type = D_INDIR+D_ADDR; + } spec4: /* NOP */ nonnon @@ -385,6 +392,12 @@ imm: $$.type = D_FCONST; $$.dval = $3; } +| '$' '(' '-' LFCONST ')' + { + $$ = nullgen; + $$.type = D_FCONST; + $$.dval = -$4; + } | '$' '-' LFCONST { $$ = nullgen; |