summaryrefslogtreecommitdiff
path: root/emu/emul.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-12-28 16:10:40 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-12-28 16:10:40 +0100
commitdd4174bb32973d1212235dc8e262c23013b88912 (patch)
treeff72586c34bd89ea8ba50457d0901188738f2e4d /emu/emul.c
parentc0e01bce21b06bf9e62d9f2bf436ad93914512e8 (diff)
download6502-dd4174bb32973d1212235dc8e262c23013b88912.tar.gz
6502-dd4174bb32973d1212235dc8e262c23013b88912.tar.bz2
introduced cycles
Diffstat (limited to 'emu/emul.c')
-rw-r--r--emu/emul.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/emu/emul.c b/emu/emul.c
index 53d5ed2..3ee60c0 100644
--- a/emu/emul.c
+++ b/emu/emul.c
@@ -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 );