5a: reject MOVM instruction with .S and .W bits both set (aijus idea)

This commit is contained in:
cinap_lenrek 2014-08-09 22:47:46 +02:00
parent daa15d1edb
commit 3472f91129

View file

@ -563,6 +563,13 @@ outcode(int a, int scond, Gen *g1, int reg, Gen *g2)
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: