aboutsummaryrefslogtreecommitdiff
path: root/examples/alpha.s
diff options
context:
space:
mode:
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