diff options
Diffstat (limited to 'emu/6502.c')
-rw-r--r-- | emu/6502.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -182,7 +182,7 @@ static const int cycles[NOF_OPCODES] = { /* B */ 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* C */ 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, /* D */ 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - /* E */ 3, 0, 0, 0, 0, 0, 5, 0, 0, 2, 2, 0, 0, 0, 0, 0, + /* E */ 2, 0, 0, 0, 0, 0, 5, 0, 0, 2, 2, 0, 0, 0, 0, 0, /* F */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; @@ -427,6 +427,7 @@ void cpu_6502_step( cpu_6502_t *cpu ) cpu->PC++; if( !cpu_6502_is_zero( cpu ) ) { cpu->PC += (int8_t)operand8; + cpu->cycles++; } break; @@ -435,6 +436,7 @@ void cpu_6502_step( cpu_6502_t *cpu ) cpu->PC++; if( !cpu_6502_is_carry( cpu ) ) { cpu->PC += (int8_t)operand8; + cpu->cycles++; } break; @@ -443,6 +445,7 @@ void cpu_6502_step( cpu_6502_t *cpu ) cpu->PC++; if( cpu_6502_is_carry( cpu ) ) { cpu->PC += (int8_t)operand8; + cpu->cycles++; } break; |