]> wirehaze git hosting - lifeboot.git/blobdiff - lifeboot.asm

wirehaze git hosting

make instr operand size explicit
[lifeboot.git] / lifeboot.asm
index 278bf328a456e12193f8622867feb640975b5ab5..f438c6069c9c25b110a8f2dc2f4b660c15dec224 100644 (file)
@@ -92,7 +92,7 @@ mov cx, COLS * ROWS         ; for each cell
     call xs                 ;     [XSS] = rand
     mov al, DEAD            ;     al = DEAD (likely)
 
     call xs                 ;     [XSS] = rand
     mov al, DEAD            ;     al = DEAD (likely)
 
-    test [XSS], 0b11
+    test word [XSS], 0b11
 
     jnz  .nz                ;     if ([XSS] % 4 == 0)
     mov al, ALIVE           ;         al = ALIVE
 
     jnz  .nz                ;     if ([XSS] % 4 == 0)
     mov al, ALIVE           ;         al = ALIVE