diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-28 16:10:40 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-28 16:10:40 +0100 |
commit | dd4174bb32973d1212235dc8e262c23013b88912 (patch) | |
tree | ff72586c34bd89ea8ba50457d0901188738f2e4d /emu/6502.h | |
parent | c0e01bce21b06bf9e62d9f2bf436ad93914512e8 (diff) | |
download | 6502-dd4174bb32973d1212235dc8e262c23013b88912.tar.gz 6502-dd4174bb32973d1212235dc8e262c23013b88912.tar.bz2 |
introduced cycles
Diffstat (limited to 'emu/6502.h')
-rw-r--r-- | emu/6502.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -20,6 +20,7 @@ typedef struct int debug_flags; int steps; + int cycles; int error_state; } cpu_6502_t; @@ -92,7 +93,8 @@ void cpu_6502_push_word( cpu_6502_t *cpu, uint16_t data ); uint8_t cpu_6502_pop_byte( cpu_6502_t *cpu ); uint16_t cpu_6502_pop_word( cpu_6502_t *cpu ); -void cpu_6502_run( cpu_6502_t *cpu, int steps ); +void cpu_6502_run_steps( cpu_6502_t *cpu, int steps ); +void cpu_6502_run_cycles( cpu_6502_t *cpu, int cycles ); void cpu_6502_step( cpu_6502_t *cpu ); void cpu_6502_get_opcode_mnemonic( cpu_6502_t *cpu, char *buf, int buflen, uint16_t addr ); |