summaryrefslogtreecommitdiff
path: root/loader.c
AgeCommit message (Collapse)Author
2010-09-10Trying to get the zexdoc testbench to run.Astrid Smith
Now, at least, it's integrated into the build system and will be automatically included in built executables.
2010-09-10Added stubs for putting the emulated screen into a TIOS-drawn window.Astrid Smith
2010-09-07IO port framework now worksAstrid Smith
A68k is defaulting all my address moves to word size, rather than long. I don't know whether I've expunged all this nonsense yet, but I'm trying. This version executes an infinite loop which writes 'A' to port 00h. I've patched in a write-to-console function on port 00h, so this can be used as a sort of debug monitor.
2010-09-06Fixes to actually run codeAstrid Smith
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.
2010-07-24Clearly, I shouldn't be trusted to write C.Astrid Smith
2010-07-23First go at program loader created, as yet untestedAstrid Smith
2010-07-03Now it compiles properly. Still doesn't seem to run without address error, ↵Astrid Smith
though.
2010-06-30fooAstrid Smith
2010-06-26Rewrote loader routine in CAstrid Smith