mirror of
https://github.com/mamedev/mame.git
synced 2024-09-28 03:20:58 +02:00
tlcs900.c: Fixed BIT operation on bytes for bit numbers > 7. (nw)
This commit is contained in:
parent
235b191d31
commit
57e42cda31
1 changed files with 1 additions and 1 deletions
|
@ -1530,7 +1530,7 @@ static void _BITBIM(tlcs900_state *cpustate)
|
||||||
static void _BITBIR(tlcs900_state *cpustate)
|
static void _BITBIR(tlcs900_state *cpustate)
|
||||||
{
|
{
|
||||||
cpustate->sr.b.l &= ~ ( FLAG_ZF | FLAG_NF );
|
cpustate->sr.b.l &= ~ ( FLAG_ZF | FLAG_NF );
|
||||||
if ( *cpustate->p2_reg8 & ( 1 << ( cpustate->imm1.b.l & 0x07 ) ) )
|
if ( *cpustate->p2_reg8 & ( 1 << ( cpustate->imm1.b.l & 0x0f ) ) )
|
||||||
cpustate->sr.b.l |= FLAG_HF;
|
cpustate->sr.b.l |= FLAG_HF;
|
||||||
else
|
else
|
||||||
cpustate->sr.b.l |= FLAG_HF | FLAG_ZF;
|
cpustate->sr.b.l |= FLAG_HF | FLAG_ZF;
|
||||||
|
|
Loading…
Reference in a new issue