From 271bc85c37bc140c92d9ba905520bdc9b8b96519 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Thu, 7 Feb 2013 19:22:13 -0500 Subject: [PATCH] use the toolbox. --- bin/loader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/loader.cpp b/bin/loader.cpp index 815c598..7d5e67f 100644 --- a/bin/loader.cpp +++ b/bin/loader.cpp @@ -13,6 +13,8 @@ #include #include +#include + uint8_t *Memory; uint32_t HighWater = 0x10000; uint32_t MemorySize = 0; @@ -463,7 +465,10 @@ int main(int argc, char **argv) WriteLong(Memory, address + Flags.stack - 4, 0xffffffff); } + cpuSetALineExceptionFunc(ToolBox::dispatch); memorySetMemory(Memory, MemorySize); + + for (unsigned i = 0; i < 10000; ++i) { if (Flags.traceCPU)