summaryrefslogtreecommitdiff
path: root/emu/emul.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-11-26 19:55:02 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-11-26 19:55:02 +0100
commit3d77f3f5ad41e931117425f58c74f49c9503bf7b (patch)
tree8165c8f10a1b3b3cec27cfb283ee218e7af3a519 /emu/emul.h
parent394c9fbb6cc243e46b32aa9e7221b0e6cadd4c13 (diff)
download6502-3d77f3f5ad41e931117425f58c74f49c9503bf7b.tar.gz
6502-3d77f3f5ad41e931117425f58c74f49c9503bf7b.tar.bz2
more work on emulator, mainly debug and 7seg stuff
Diffstat (limited to 'emu/emul.h')
-rw-r--r--emu/emul.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/emu/emul.h b/emu/emul.h
index 131cd4c..6012309 100644
--- a/emu/emul.h
+++ b/emu/emul.h
@@ -21,6 +21,8 @@ typedef struct emul_t {
cpu_6502_t *cpu;
memory_t *memory;
bool gui;
+ int width;
+ int height;
#ifdef WITH_GUI
SDL_Window *window;
SDL_Renderer *renderer;
@@ -29,9 +31,9 @@ typedef struct emul_t {
#endif
} emul_t;
-void emul_init( emul_t *emul, cpu_6502_t *cpu, memory_t *memory );
+void emul_init( emul_t *emul, cpu_6502_t *cpu, memory_t *memory, int width, int height );
void emul_start( emul_t *emul );
-void emul_run( emul_t *emul );
+void emul_run( emul_t *emul, int nof_steps );
void emul_free( emul_t *emul );
#endif