From be4e09f43d8dae20e8fff2d0af21f0fc33298954 Mon Sep 17 00:00:00 2001 From: Astrid Smith Date: Mon, 6 Sep 2010 18:09:29 -0700 Subject: Fixes to actually run code This is the version to run the first (trivial) infinite loop correctly. I hacked up the loader slightly to replace one of the (nonexistent) pages with a static byte array. z80 code executed: $4000: JP $4000 4000 c3 40 00 4003 This version also draws the opcode executed on the screen, to aid in debugging the emulator: move.b d0,$4c00+32*(128/8) Also, it turns out that I was mixing up the emulated SP (a4) and emulated PC (a6). That has been fixed. Further, it seems that movea defaults to a word operation in a68k. This led to pointer corruption, which has been fixed. --- 680.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 680.h (limited to '680.h') diff --git a/680.h b/680.h new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3