diff options
author | Oxore <oxore@protonmail.com> | 2023-06-10 13:26:58 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-06-10 14:50:12 +0300 |
commit | fccfe0e0b4848fa38403b515d77b6aba37570e54 (patch) | |
tree | f520df03c9d913ff9edfbd1ea626d9f93e92d625 /emulator.cpp | |
parent | a8beae02428f4c7762c3621b4a6d23a498b7d394 (diff) |
Impl IO class with tracing, add VDP addr regs tracing
Diffstat (limited to 'emulator.cpp')
-rw-r--r-- | emulator.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/emulator.cpp b/emulator.cpp index 262f160..0dc63b9 100644 --- a/emulator.cpp +++ b/emulator.cpp @@ -4,6 +4,7 @@ #include "bus.hpp" #include "graphics.hpp" #include "vdp.hpp" +#include "io.hpp" #include "m68k_debugging.hpp" #include "gdbremote_parser.hpp" #include "utils.hpp" @@ -38,7 +39,7 @@ unsigned char g_rom[ROM_SIZE] = {}; unsigned char g_ram[RAM_SIZE] = {}; unsigned char g_sound_ram[SOUND_RAM_SIZE] = {}; -unsigned char g_io1[IO1_SIZE] = {}; +IO g_io1(IO1_START); unsigned char g_psg[PSG_SIZE] = {}; VDP g_vdp(VDP_START); std::vector<Breakpoint> code_bkpts{}, read_bkpts{}, write_bkpts{}, access_bkpts{}; @@ -441,13 +442,13 @@ void ParseAndReact( static void RunSingleVideoCycle(M68KDebuggingControl& m68k_debug, Graphics& graphics) { do { - g_cycles_counter += m68k_execute(1000); + g_cycles_counter += m68k_execute(100000); if (m68k_debug.HasBreakpoint()) { return; } } while (!g_vdp.Scanline()); graphics.Render(g_vdp); - g_cycles_counter += m68k_execute(8000); + g_cycles_counter += m68k_execute(800000); } int emulator(M68KDebuggingControl& m68k_debug, Graphics& graphics) |