Previous 199869 Revisions Next

r17782 Monday 10th September, 2012 at 19:14:33 UTC by Sandro Ronco
fixed RORA/RORB opcodes in HC11 core. (nw)
[src/emu/cpu/mc68hc11]hc11ops.c

trunk/src/emu/cpu/mc68hc11/hc11ops.c
r17781r17782
26792679/* RORA             0x46 */
26802680static void HC11OP(rora)(hc11_state *cpustate)
26812681{
2682   UINT16 r = ((REG_A & 0x7f) >> 1) | ((cpustate->ccr & CC_C) ? 0x80 : 0);
2682   UINT16 r = ((REG_A & 0xfe) >> 1) | ((cpustate->ccr & CC_C) ? 0x80 : 0);
26832683   CLEAR_NZVC(cpustate);
26842684   cpustate->ccr |= (REG_A & 1) ? CC_C : 0;
26852685   REG_A = (UINT8)(r);
r17781r17782
26982698/* RORB             0x56 */
26992699static void HC11OP(rorb)(hc11_state *cpustate)
27002700{
2701   UINT16 r = ((REG_B & 0x7f) >> 1) | ((cpustate->ccr & CC_C) ? 0x80 : 0);
2701   UINT16 r = ((REG_B & 0xfe) >> 1) | ((cpustate->ccr & CC_C) ? 0x80 : 0);
27022702   CLEAR_NZVC(cpustate);
27032703   cpustate->ccr |= (REG_B & 1) ? CC_C : 0;
27042704   REG_B = (UINT8)(r);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team