games/snes: BIT #imm does not set NZ flags

This commit is contained in:
aiju 2014-03-17 14:54:12 +01:00
parent f2f46f4a33
commit b1cd72cfef

View file

@ -857,7 +857,11 @@ cpustep(void)
rY &= 0xff;
nzx(rY);
return 2;
case 0x89: bit(imm(0)); return 2+cyc;
case 0x89:
rP &= ~FLAGZ;
if((imm(0) & rA) == 0)
rP |= FLAGZ;
return 2+cyc;
case 0x8A: setra(rX); return 2+cyc;
case 0x8B: push8(rDB >> 16); return 3;
case 0x8C: memwx816(abso(0, 0), rY); return 4+cyc;