From 63ac7e42bd2aefab3ae00c0f5a81dffdf3c102db Mon Sep 17 00:00:00 2001 From: Astrid Smith Date: Tue, 7 Sep 2010 19:12:01 -0700 Subject: IO port framework now works 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. --- debug.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 debug.c (limited to 'debug.c') diff --git a/debug.c b/debug.c new file mode 100644 index 0000000..b98e4f6 --- /dev/null +++ b/debug.c @@ -0,0 +1,14 @@ +/* Debugging routines for 680 project. + * + * Includes debug output. + * + * Copyright 2010, Astrid Smith + * GPL + */ + +#include + +void char_draw(char c) +{ + putchar((short)c); +} -- cgit v1.2.3