diff options
Diffstat (limited to 'ports_test.s')
| -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 |
