Previous 199869 Revisions Next

r20270 Monday 14th January, 2013 at 20:55:39 UTC by Wilbert Pol
tlcs900.c: Fixed BIT operation on bytes for bit numbers > 7. (nw)
[src/emu/cpu/tlcs900]900tbl.c

trunk/src/emu/cpu/tlcs900/900tbl.c
r20269r20270
15301530static void _BITBIR(tlcs900_state *cpustate)
15311531{
15321532   cpustate->sr.b.l &= ~ ( FLAG_ZF | FLAG_NF );
1533   if ( *cpustate->p2_reg8 & ( 1 << ( cpustate->imm1.b.l & 0x07 ) ) )
1533   if ( *cpustate->p2_reg8 & ( 1 << ( cpustate->imm1.b.l & 0x0f ) ) )
15341534      cpustate->sr.b.l |= FLAG_HF;
15351535   else
15361536      cpustate->sr.b.l |= FLAG_HF | FLAG_ZF;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team