mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
(MESS) gamecom : fixed calculator
This commit is contained in:
parent
4f1c2bb988
commit
056dced923
@ -63,8 +63,8 @@
|
||||
} \
|
||||
break; \
|
||||
case 0xC0: \
|
||||
s2 = mem_readword( sm8500_b2w[r1 & 0x07] ); \
|
||||
mem_writeword( sm8500_b2w[r1 & 0x07], s2 - 1 ); \
|
||||
s2 = mem_readword( sm8500_b2w[r1 & 0x07])-1; \
|
||||
mem_writeword( sm8500_b2w[r1 & 0x07], s2 ); \
|
||||
break; \
|
||||
} \
|
||||
r2 = r1; \
|
||||
@ -1270,12 +1270,16 @@ case 0x59: /* Invalid - 2? cycles - Flags affected: --------? */
|
||||
mycycles += 2;
|
||||
break;
|
||||
case 0x5A: /* unk5A - 7,8,12,9,8 cycles */
|
||||
logerror( "%04X: unk%02x\n", m_PC-1,op );
|
||||
ARG_ad16;
|
||||
logerror( "%04X: unk%02x\n", m_PC-1,op );
|
||||
/* NOTE: This unknown command is used in the calculator as a compare instruction
|
||||
at 0x493A and 0x4941, we set the flags on the 3rd byte, although its real
|
||||
function remains a mystery */
|
||||
ARG_iR;
|
||||
OP_CMP8( 0, r1 );
|
||||
mycycles += 7;
|
||||
break;
|
||||
case 0x5B: /* unk5B - 6,7,11,8,7 cycles */
|
||||
logerror( "%04X: unk%02x\n", m_PC-1,op );
|
||||
logerror( "%04X: unk%02x\n", m_PC-1,op );
|
||||
/* NOTE: This unknown command is used in several carts, the code below allows those carts to boot */
|
||||
ARG_iR;
|
||||
r1 = r2 & 7;
|
||||
|
Loading…
Reference in New Issue
Block a user