diff options
| author | manuel <manuel@nc8430.lan> | 2009-05-13 04:09:39 +0200 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-05-13 04:09:39 +0200 |
| commit | 89e202f49b9857dcd3627fbc4e0262125d729bbc (patch) | |
| tree | dbe69dd8498eb0a489bc7b7e24f2b73580c598d2 /ue3/mycpu/test/program1 | |
| parent | 45581d3d376e8deed84952cb838ae330549e5241 (diff) | |
| download | ooprog-89e202f49b9857dcd3627fbc4e0262125d729bbc.tar.gz ooprog-89e202f49b9857dcd3627fbc4e0262125d729bbc.tar.bz2 ooprog-89e202f49b9857dcd3627fbc4e0262125d729bbc.zip | |
adding all instructions and displays
Diffstat (limited to 'ue3/mycpu/test/program1')
| -rw-r--r-- | ue3/mycpu/test/program1 | 13 |
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 | ||
| 2 | LOAD R2, R1 | ||
| 3 | |||
| 4 | # start of loop | ||
| 5 | label Loop: | ||
| 6 | inc R3 | ||
| 7 | sub R4, R3, R2 | ||
| 8 | test R4 | ||
| 9 | jumpz EndLoop | ||
| 10 | write WDEZ, R3 | ||
| 11 | jumpa Loop | ||
| 12 | |||
| 13 | label EndLoop: | ||
