5a: reject MOVM instruction with .S and .W bits both set (aijus idea)
This commit is contained in:
parent
daa15d1edb
commit
3472f91129
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue