summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorAstrid Smith2010-09-07 19:12:01 -0700
committerAstrid Smith2010-09-07 19:12:01 -0700
commit63ac7e42bd2aefab3ae00c0f5a81dffdf3c102db (patch)
treea308f1db0435ef16524dc1411118d44427d14ddd /debug.c
parentb3aef0ee73d2e2ee86c1a9f75cfd56d0be220d0f (diff)
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.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c14
1 files changed, 14 insertions, 0 deletions
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 <stdio.h>
+
+void char_draw(char c)
+{
+ putchar((short)c);
+}