From dc96c56d9e9da633795fe512067efcc444bcbe2d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 22 Aug 2006 14:42:45 -0700 Subject: Add support for negate and abs to source operands. --- assembler/lex.l | 2 ++ 1 file changed, 2 insertions(+) (limited to 'assembler/lex.l') diff --git a/assembler/lex.l b/assembler/lex.l index b1a96bc7..1e58b6ac 100644 --- a/assembler/lex.l +++ b/assembler/lex.l @@ -64,6 +64,8 @@ int saved_state = INITIAL; "}" { return RCURLY; } "," { return COMMA; } "." { return DOT; } +"-" { return MINUS; } +"(abs)" { return ABS; } /* XXX: this lexing of register files is shady */ "acc" { -- cgit v1.2.3