diff options
| -rw-r--r-- | asm.peg | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); } |
