Fix too long imm for cmp r8, imm8

This commit is contained in:
Nero 2022-01-07 22:30:07 +00:00
parent 074c293a04
commit a15e2e0480

View File

@ -300,7 +300,7 @@ x86 && op in alu {
} else if (byteop && rm1 || op1 in r8) { } else if (byteop && rm1 || op1 in r8) {
pushb(128) # 80 pushb(128) # 80
modrm(op1, alu[op], r8) modrm(op1, alu[op], r8)
pushw(getsym(op2)) pushb(getsym(op2))
} else if (wordop && rm1 || op1 in r16) { } else if (wordop && rm1 || op1 in r16) {
pushb(129) # 81 pushb(129) # 81
modrm(op1, alu[op], r16) modrm(op1, alu[op], r16)