diff options
| author | Astrid Smith | 2011-10-31 00:29:16 -0700 |
|---|---|---|
| committer | Astrid Smith | 2011-10-31 00:29:16 -0700 |
| commit | 0db2cfe5e3d935464b89ce525c1f88b3527ac186 (patch) | |
| tree | 862715b45a5570538bb12d822f25b3bd7d3e91a4 | |
| parent | 1b4e250eb470c5d74f35ea7d8adb388d3fc66ce8 (diff) | |
IO testing harness added
| -rw-r--r-- | ports_test.s | 11 |
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 |
