summaryrefslogtreecommitdiff
path: root/emulator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'emulator.cpp')
-rw-r--r--emulator.cpp7
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)