ref: 5eddd844752a0755fcd089b07c334b8518aa8d80
parent: dd242d5b52876841513a8e1ea26d4e60f9e2f58d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Aug 9 18:47:46 EDT 2014
5a: reject MOVM instruction with .S and .W bits both set (aijus idea)
--- a/sys/src/cmd/5a/lex.c
+++ b/sys/src/cmd/5a/lex.c
@@ -563,6 +563,13 @@
scond = (scond & ~0xf) | Always;
}
+ if(a == AMOVM){+ if((scond & (C_SBIT|C_WBIT)) == (C_SBIT|C_WBIT)){+ yyerror("MOVM .S and .W are exclusive");+ errorexit();
+ }
+ }
+
if(pass == 1)
goto out;
jackpot:
--
⑨