diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-28 16:10:40 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-28 16:10:40 +0100 |
commit | dd4174bb32973d1212235dc8e262c23013b88912 (patch) | |
tree | ff72586c34bd89ea8ba50457d0901188738f2e4d /emu/emul.c | |
parent | c0e01bce21b06bf9e62d9f2bf436ad93914512e8 (diff) | |
download | 6502-dd4174bb32973d1212235dc8e262c23013b88912.tar.gz 6502-dd4174bb32973d1212235dc8e262c23013b88912.tar.bz2 |
introduced cycles
Diffstat (limited to 'emu/emul.c')
-rw-r--r-- | emu/emul.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -118,7 +118,7 @@ void emul_run( emul_t *emul, int nof_steps ) emul->paused = true; break; case SDLK_s: - cpu_6502_run( emul->cpu, 1 ); + cpu_6502_run_steps( emul->cpu, 1 ); break; case SDLK_EQUALS: case SDLK_KP_EQUALS: @@ -147,7 +147,7 @@ void emul_run( emul_t *emul, int nof_steps ) } if( !emul->paused ) { - cpu_6502_run( emul->cpu, emul->speed / DISPLAY_FPS ); + cpu_6502_run_cycles( emul->cpu, emul->speed / DISPLAY_FPS ); } SDL_RenderCopy( emul->renderer, emul->background_texture, NULL, NULL ); @@ -171,7 +171,7 @@ void emul_run( emul_t *emul, int nof_steps ) } } } else { - cpu_6502_run( emul->cpu, nof_steps ); + cpu_6502_run_steps( emul->cpu, nof_steps ); } #else cpu_6502_run( emul->cpu, nof_steps ); |