trunk/src/emu/cpu/g65816/g65816.c
r17634 | r17635 | |
368 | 368 | device->save_item(NAME(cpustate->fastROM)); |
369 | 369 | |
370 | 370 | device->machine().save().register_postload(save_prepost_delegate(FUNC(g65816_restore_state), cpustate)); |
| 371 | |
| 372 | cpustate->rw8_cycles = 1; |
| 373 | cpustate->rw16_cycles = 2; |
| 374 | cpustate->rw24_cycles = 3; |
371 | 375 | } |
372 | 376 | |
373 | 377 | /************************************************************************** |
r17634 | r17635 | |
555 | 559 | CPU_INIT_CALL(g65816); |
556 | 560 | |
557 | 561 | cpustate->cpu_type = CPU_TYPE_5A22; |
| 562 | cpustate->rw8_cycles = 0; |
| 563 | cpustate->rw16_cycles = 0; |
| 564 | cpustate->rw24_cycles = 0; |
558 | 565 | } |
559 | 566 | |
560 | 567 | static CPU_RESET( 5a22 ) |
trunk/src/emu/cpu/g65816/g65816cm.h
r17634 | r17635 | |
109 | 109 | uint destination; |
110 | 110 | int ICount; |
111 | 111 | int cpu_type; |
| 112 | UINT8 rw8_cycles, rw16_cycles, rw24_cycles; |
112 | 113 | }; |
113 | 114 | |
114 | 115 | extern void (*const *const g65816i_opcodes[])(g65816i_cpu_struct *cpustate); |
r17634 | r17635 | |
194 | 195 | /* ======================================================================== */ |
195 | 196 | |
196 | 197 | #define CLK_OP 1 |
197 | | #define CLK_R8 1 |
198 | | #define CLK_R16 2 |
199 | | #define CLK_R24 3 |
200 | | #define CLK_W8 1 |
201 | | #define CLK_W16 2 |
202 | | #define CLK_W24 3 |
203 | | #define CLK_RMW8 3 |
204 | | #define CLK_RMW16 5 |
| 198 | #define CLK_R8 cpustate->rw8_cycles |
| 199 | #define CLK_R16 cpustate->rw16_cycles |
| 200 | #define CLK_R24 cpustate->rw24_cycles |
| 201 | #define CLK_W8 cpustate->rw8_cycles |
| 202 | #define CLK_W16 cpustate->rw16_cycles |
| 203 | #define CLK_W24 cpustate->rw24_cycles |
| 204 | #define CLK_RMW8 cpustate->rw8_cycles+cpustate->rw8_cycles + 1 |
| 205 | #define CLK_RMW16 cpustate->rw16_cycles+cpustate->rw16_cycles + 1 |
205 | 206 | |
206 | 207 | #define CLK_IMPLIED 1 |
207 | 208 | #define CLK_IMPLIED 1 |