summaryrefslogtreecommitdiffstats
path: root/ue3/mycpu/test/test1_program
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-13 16:55:17 +0200
committermanuel <manuel@nc8430.lan>2009-05-13 16:55:17 +0200
commit3c6f886d5a8bfd36c796b963d6e3178ad9577742 (patch)
tree7a65d184e66c810777d18ea208931910c91b7e43 /ue3/mycpu/test/test1_program
parent431bbac5a99abbccf33500e22aa353ec792eff94 (diff)
downloadooprog-3c6f886d5a8bfd36c796b963d6e3178ad9577742.tar.gz
ooprog-3c6f886d5a8bfd36c796b963d6e3178ad9577742.tar.bz2
ooprog-3c6f886d5a8bfd36c796b963d6e3178ad9577742.zip
* added documentation (no more TODOs)
* added testsuite + testcase * used copyctor instead of assign operator more often
Diffstat (limited to 'ue3/mycpu/test/test1_program')
-rw-r--r--ue3/mycpu/test/test1_program13
1 files changed, 13 insertions, 0 deletions
diff --git a/ue3/mycpu/test/test1_program b/ue3/mycpu/test/test1_program
new file mode 100644
index 0000000..ae5e9d2
--- /dev/null
+++ b/ue3/mycpu/test/test1_program
@@ -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: