trunk/src/emu/cpu/mc68hc11/hc11ops.c
| r17781 | r17782 | |
| 2679 | 2679 | /* RORA 0x46 */ |
| 2680 | 2680 | static void HC11OP(rora)(hc11_state *cpustate) |
| 2681 | 2681 | { |
| 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); |
| 2683 | 2683 | CLEAR_NZVC(cpustate); |
| 2684 | 2684 | cpustate->ccr |= (REG_A & 1) ? CC_C : 0; |
| 2685 | 2685 | REG_A = (UINT8)(r); |
| r17781 | r17782 | |
| 2698 | 2698 | /* RORB 0x56 */ |
| 2699 | 2699 | static void HC11OP(rorb)(hc11_state *cpustate) |
| 2700 | 2700 | { |
| 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); |
| 2702 | 2702 | CLEAR_NZVC(cpustate); |
| 2703 | 2703 | cpustate->ccr |= (REG_B & 1) ? CC_C : 0; |
| 2704 | 2704 | REG_B = (UINT8)(r); |