summaryrefslogtreecommitdiffstats
path: root/ue3/mycpu/test/program1
diff options
context:
space:
mode:
Diffstat (limited to 'ue3/mycpu/test/program1')
-rw-r--r--ue3/mycpu/test/program113
1 files changed, 13 insertions, 0 deletions
diff --git a/ue3/mycpu/test/program1 b/ue3/mycpu/test/program1
new file mode 100644
index 0000000..ae5e9d2
--- /dev/null
+++ b/ue3/mycpu/test/program1
@@ -0,0 +1,13 @@
1# set R2 = 10
2LOAD R2, R1
3
4# start of loop
5label Loop:
6inc R3
7sub R4, R3, R2
8test R4
9jumpz EndLoop
10write WDEZ, R3
11jumpa Loop
12
13label EndLoop: