aboutsummaryrefslogtreecommitdiff
path: root/examples/alpha.s
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-25 18:20:15 +0000
committerDimitri Sokolyuk <demon@dim13.org>2015-11-25 18:20:15 +0000
commit76369877147e77c24e6b56f4a166922959c2f149 (patch)
tree4baf650be4971f0577c4a363629099aeddb5a462 /examples/alpha.s
parent4592509f18e44d6302fe3fd7ad69974beb00b749 (diff)
Add examples
Diffstat (limited to 'examples/alpha.s')
-rw-r--r--examples/alpha.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/alpha.s b/examples/alpha.s
new file mode 100644
index 0000000..5504310
--- /dev/null
+++ b/examples/alpha.s
@@ -0,0 +1,19 @@
+SET PUSH, 0x0000
+:LABEL0BEGIN_WHILE
+IFG 0x001A, PEEK
+SET PC, LABEL1ELSE
+SET PC, LABEL2END
+:LABEL1ELSE
+SET B, PEEK
+SET A, 0x8000
+ADD A, B
+SET C, PEEK
+SET B, 0x0041
+ADD B, C
+SET [A], B
+SET A, PEEK
+ADD A, 0x0001
+SET PEEK, A
+SET PC, LABEL0BEGIN_WHILE
+:LABEL2END
+BRK