summaryrefslogtreecommitdiff
path: root/emu/6502.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-11-22 20:38:51 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-11-22 20:38:51 +0100
commit6c3401b8a2ce7a2dfe21a253f840f286088b1921 (patch)
treef49b1bba8b10c3b3681927764cd795e7af4ad9e5 /emu/6502.h
parent052899e196c6a2660651b9896ceed3313e7d0bac (diff)
download6502-6c3401b8a2ce7a2dfe21a253f840f286088b1921.tar.gz
6502-6c3401b8a2ce7a2dfe21a253f840f286088b1921.tar.bz2
more work on emulator
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