Debugger STEP and BIGSTEP.

This commit is contained in:
2017-01-31 19:59:34 +01:00
parent e47cb247eb
commit 9b4e5be3b4
5 changed files with 16 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ int main(int argc, char** argv) {
vm_register_in_port(21, input_data_out);
debug_init(vm_get_memory());
static bool should_quit = false;
static SDL_Event sdlEvent;
SDL_Scancode just_pressed;
@@ -59,9 +60,10 @@ int main(int argc, char** argv) {
anykey = true;
just_pressed = sdlEvent.key.keysym.scancode;
if (sdlEvent.key.keysym.scancode == SDL_SCANCODE_ESCAPE) { should_quit = true; }
if (sdlEvent.key.keysym.scancode == SDL_SCANCODE_RETURN) { vm_big_step(); debug_update(); }
}
}
vm_step();
//vm_step();
//if (SDL_GetTicks() - ticks >= 15) { vdp_flip(); ticks = SDL_GetTicks(); }
}