From a15e2e04804d96e2d85107d92ff876c220514e55 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Fri, 7 Jan 2022 22:30:07 +0000 Subject: [PATCH] Fix too long imm for cmp r8, imm8 --- asm.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm.awk b/asm.awk index a53cf2e..5a3e004 100644 --- a/asm.awk +++ b/asm.awk @@ -300,7 +300,7 @@ x86 && op in alu { } else if (byteop && rm1 || op1 in r8) { pushb(128) # 80 modrm(op1, alu[op], r8) - pushw(getsym(op2)) + pushb(getsym(op2)) } else if (wordop && rm1 || op1 in r16) { pushb(129) # 81 modrm(op1, alu[op], r16)