From dd4174bb32973d1212235dc8e262c23013b88912 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 28 Dec 2020 16:10:40 +0100 Subject: introduced cycles --- emu/6502.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emu/6502.h') diff --git a/emu/6502.h b/emu/6502.h index 9dc8614..c462fcc 100644 --- a/emu/6502.h +++ b/emu/6502.h @@ -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 ); -- cgit v1.2.3-54-g00ecf