summaryrefslogtreecommitdiff
path: root/emu/6502.h
diff options
context:
space:
mode:
Diffstat (limited to 'emu/6502.h')
-rw-r--r--emu/6502.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/emu/6502.h b/emu/6502.h
index 1af25bc..b5ab14a 100644
--- a/emu/6502.h
+++ b/emu/6502.h
@@ -16,6 +16,8 @@ typedef struct
struct memory_t *memory;
bool debug;
+
+ int steps;
} cpu_6502_t;
enum {
@@ -50,11 +52,11 @@ void cpu_6502_push_byte( cpu_6502_t *cpu, uint8_t data );
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 );
+void cpu_6502_run( cpu_6502_t *cpu, int steps );
+void cpu_6502_step( cpu_6502_t *cpu );
void cpu_6502_print_state( cpu_6502_t *cpu, uint8_t opcode );
void cpu_6502_print_memory( cpu_6502_t *cpu, uint16_t base, uint8_t size );
void cpu_6502_print_stack( cpu_6502_t *cpu );
void cpu_6502_print_zerop_page( cpu_6502_t *cpu );
-void cpu_6502_step( cpu_6502_t *cpu );
#endif