Skip to content

Commit

Permalink
asm: Add .eqv define. Treat .equ, .equiv, .eqv as OP_EQU
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Ferry committed Sep 25, 2017
1 parent 26ea56d commit 0e2e8f4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions parsers/asm.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ typedef enum {
OP_ENDP,
OP_ENDS,
OP_EQU,
OP_EQUIV,
OP_EQUAL,
OP_LABEL,
OP_MACRO,
Expand Down Expand Up @@ -91,7 +90,6 @@ static const keywordTable AsmKeywords [] = {
{ "endp", OP_ENDP },
{ "ends", OP_ENDS },
{ "equ", OP_EQU },
{ "equiv", OP_EQUIV },
{ "label", OP_LABEL },
{ "macro", OP_MACRO },
{ ":=", OP_COLON_EQUAL },
Expand All @@ -100,8 +98,10 @@ static const keywordTable AsmKeywords [] = {
{ "record", OP_RECORD },
{ "sections", OP_SECTIONS },

/* This one is used in GNU as. */
/* These are used in GNU as. */
{ "section", OP_SECTION },
{ "equiv", OP_EQU },
{ "eqv", OP_EQU },

{ "set", OP_SET },
{ "struct", OP_STRUCT }
Expand All @@ -117,7 +117,6 @@ static const opKind OpKinds [] = {
{ OP_ENDP, K_NONE },
{ OP_ENDS, K_NONE },
{ OP_EQU, K_DEFINE },
{ OP_EQUIV, K_DEFINE },
{ OP_EQUAL, K_DEFINE },
{ OP_LABEL, K_LABEL },
{ OP_MACRO, K_MACRO },
Expand Down

0 comments on commit 0e2e8f4

Please sign in to comment.