aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/07-bytes.zc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/learn/07-bytes.zc')
-rw-r--r--examples/learn/07-bytes.zc7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/learn/07-bytes.zc b/examples/learn/07-bytes.zc
new file mode 100644
index 0000000..7d06282
--- /dev/null
+++ b/examples/learn/07-bytes.zc
@@ -0,0 +1,7 @@
+fn main() {
+ let w = 0;
+ st8(addr_b(&w), 0x11);
+ st8(addr_b(&w) + 1, 0x22);
+ put_n(ld8(addr_b(&w))); put_c(32); put_n(w); put_c(10);
+ return 0;
+}