A wrong nasm assembly instruction in cgn.c of 08_If_Statements
vcheckzen opened this issue · 1 comments
vcheckzen commented
movzb
cannot be recognised by nasm, it should be substituted by movzx
according to the nasm doc.
MOVZX reg16,mem 386
MOVZX reg16,reg8 386
MOVZX reg32,rm8 386
MOVZX reg32,rm16 386
MOVZX reg64,rm8 X86_64,LONG
MOVZX reg64,rm16 X86_64,LONG
the-grue commented
Hi @vcheckzen ! It would appear you are correct. Apparently that code wasn't exercised by the test, so I didn't catch and correct it. Later versions have the correct opcode.
Feel free to submit a pull request for the fix since you found it.
Jim