Debugger STEP and BIGSTEP.
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -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(); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user