commit - 905262f96cf658f853fb2d765b8111128cc873f0
commit + f302a70ba3c4ac7748692df11b6142c533992877
blob - e8c3fe930207fcb1b582c4c6a2658653fc7ca645
blob + 24f2c81665b0089e6e9d9347586888fc4796f3d3
--- Makefile
+++ Makefile
test: all
./mc5000 -o test.bin test.s
+ ./mc5000 -o test2.bin test2.s
blob - /dev/null
blob + 1461c87096a139c0ec36e36138eed69038ba53fb (mode 644)
--- /dev/null
+++ test2.s
+# Turn on an LED. Flash it when the chip (re)boots or a button is pressed.
+#
+# p0 button
+# p1 LED
+
+ mov 0 p1
+ slp 1
+ mov 100 p1
+ slp 1
+ mov 0 p1
+ slp 10
+on:
+ mov 100 p1
+ teq p0 100
+-jmp on