Browse Source

nasmtests: Re-enable 0x89 mem tests in mov16

The old method understandably triggered the 0x67 address-size override
prefix, which caused the segfault.

(Changed "mov [mem], ax" because that might use op 0xA3.)
Amaan Cheval 6 years ago
parent
commit
ccb9b6cbbf
1 changed files with 2 additions and 5 deletions
  1. 2 5
      tests/nasm/mov16.asm

+ 2 - 5
tests/nasm/mov16.asm

@@ -18,11 +18,8 @@ myaddress:
     mov ecx, [mydword]
     mov edx, [myaddress]
 
-    ;; Skipping 16-bit 0x89 mem tests since they cause seg faults in gdb:
-    ;; lea di, [myaddress]
-    ;; lea si, [mydword]
-    ;; mov [di+bx], ax
-    ;; mov [si+bx], cx
+    mov [myaddress], cx
+    mov [mydword], dx
 
     ;; The following db's are used since mov reg, reg can be accomplished with several opcodes but
     ;; we want to test these specific ones