diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-11-26 19:55:02 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-11-26 19:55:02 +0100 |
commit | 3d77f3f5ad41e931117425f58c74f49c9503bf7b (patch) | |
tree | 8165c8f10a1b3b3cec27cfb283ee218e7af3a519 /emu/emul.h | |
parent | 394c9fbb6cc243e46b32aa9e7221b0e6cadd4c13 (diff) | |
download | 6502-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.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |