aboutsummaryrefslogtreecommitdiff
path: root/asm.peg
diff options
context:
space:
mode:
Diffstat (limited to 'asm.peg')
-rw-r--r--asm.peg5
1 files changed, 5 insertions, 0 deletions
diff --git a/asm.peg b/asm.peg
index 7d644b6..091b119 100644
--- a/asm.peg
+++ b/asm.peg
@@ -142,6 +142,8 @@ instr =
| i:ucomisd { $$ = i; }
| i:ucomiss { $$ = i; }
| i:nop { $$ = i; }
+ | i:endbr32 { $$ = i; }
+ | i:endbr64 { $$ = i; }
call = "call" 'q'? ws (
'*' t:mem
@@ -201,6 +203,9 @@ leave = "leave" { $$ = OP(0xc9); }
nop = "nop" { $$ = OP(0x90); }
ret = "ret" { $$ = OP(0xc3); }
+endbr64 = "endbr64" { $$ = OP(0xF30F1EFA); }
+endbr32 = "endbr32" { $$ = OP(0xF30F1EFB); }
+
push = "push" (
'q'? ws s:r64 { $$ = R({.w=0}, -1, 0x50, s); }
| 'q' ws s:mem { $$ = OPMEM({.w=0}, -1, 0xff, 0x06, s); }