summaryrefslogtreecommitdiff
path: root/ports_test.s
diff options
context:
space:
mode:
authorAstrid Smith2011-10-31 00:29:16 -0700
committerAstrid Smith2011-10-31 00:29:16 -0700
commit0db2cfe5e3d935464b89ce525c1f88b3527ac186 (patch)
tree862715b45a5570538bb12d822f25b3bd7d3e91a4 /ports_test.s
parent1b4e250eb470c5d74f35ea7d8adb388d3fc66ce8 (diff)
IO testing harness added
Diffstat (limited to 'ports_test.s')
-rw-r--r--ports_test.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/ports_test.s b/ports_test.s
new file mode 100644
index 0000000..0ac2f4f
--- /dev/null
+++ b/ports_test.s
@@ -0,0 +1,11 @@
+|| -*- gas -*-
+
+ || Testing harness to pretend to be IO ports.
+
+port_in:
+ andi.w #0xff,d0
+ rts
+
+port_out:
+ andi.w #0xff,d0
+ rts