aboutsummaryrefslogtreecommitdiff
path: root/asm.peg
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-14 14:37:37 +1300
committerAndrew Chambers <[email protected]>2021-10-14 14:37:37 +1300
commit1de295e1499d2fa5fc4bfa80b5edc6d3dbed7350 (patch)
tree691f8ed3b784287cce6de1ad400aaba122420387 /asm.peg
parent819bbdd85a9950d428db00934849ee5a900c347b (diff)
Handle 64 bit immediates.
Diffstat (limited to 'asm.peg')
-rw-r--r--asm.peg2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm.peg b/asm.peg
index f0886c3..24d397f 100644
--- a/asm.peg
+++ b/asm.peg
@@ -382,7 +382,7 @@ mov = "mov" (
| 'b'? ws s:imm8 ws? ',' ws? d:r8 { $$ = INSTR2(16, s, d); }
| 'w'? ws s:imm16 ws? ',' ws? d:r16 { $$ = INSTR2(17, s, d); }
| 'l'? ws s:imm32 ws? ',' ws? d:r32 { $$ = INSTR2(18, s, d); }
- | 'q'? ws s:imm32 ws? ',' ws? d:r64 { $$ = INSTR2(19, s, d); }
+ | 'q'? ws s:imm ws? ',' ws? d:r64 { $$ = INSTR2(19, s, d); }
) { $$.instr.kind = ASM_MOV; }
movsx = "movs" (