From 8c4f6b648e4e3ea5eff4faac952853896204b2be Mon Sep 17 00:00:00 2001 From: Paulo Matos Date: Wed, 19 Nov 2025 15:04:16 +0100 Subject: [PATCH] Fix movzx instruction syntax nasm 2.16 was happy with it but it generates a bunch of errors in nasm3. The generated binaries remain the same. --- unittests/ASM/Includes/x87cw.mac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/ASM/Includes/x87cw.mac b/unittests/ASM/Includes/x87cw.mac index a4c914756..f81273c55 100644 --- a/unittests/ASM/Includes/x87cw.mac +++ b/unittests/ASM/Includes/x87cw.mac @@ -7,7 +7,7 @@ %macro set_cw_precision_rounding 2 sub rsp, 2 fnstcw [rsp] - movzx ax, [rsp] + movzx eax, word [rsp] ; Precision and eax, ~(3 << 8)