aboutsummaryrefslogtreecommitdiff
path: root/asm.peg
diff options
context:
space:
mode:
Diffstat (limited to 'asm.peg')
-rw-r--r--asm.peg2
1 files changed, 2 insertions, 0 deletions
diff --git a/asm.peg b/asm.peg
index 3bc49d1..596852b 100644
--- a/asm.peg
+++ b/asm.peg
@@ -33,6 +33,8 @@ directive =
{ $$.dirint = (Int){.kind = ASM_DIR_INT, .value = v.value }; }
| "quad" ws v:value
{ $$.dirquad = (Quad){.kind = ASM_DIR_QUAD, .value = v.value }; }
+ | "set" ws s:ident ws? ',' ws? v:value
+ { $$.set = (Set){.kind = ASM_DIR_SET, .sym = s.charptr, .value = v.value }; }
| fd:fill-directive
{ $$ = fd; }
| sd:section-directive