aboutsummaryrefslogtreecommitdiff
path: root/examples/keyb.s
diff options
context:
space:
mode:
Diffstat (limited to 'examples/keyb.s')
-rw-r--r--examples/keyb.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/keyb.s b/examples/keyb.s
new file mode 100644
index 0000000..3871a1d
--- /dev/null
+++ b/examples/keyb.s
@@ -0,0 +1,12 @@
+ set a, 0
+ set b, 0
+ set c, 0xf000
+:loop
+ ife [0x9000], 0
+ set pc, loop
+ set b, [0x9000]
+ bor b, c
+ set [0x8000 + a], b
+ set [0x9000], 0
+ add a, 1
+ set pc, loop