diff options
| author | manuel <manuel@nc8430.lan> | 2009-05-14 18:58:48 +0200 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-05-14 18:58:48 +0200 |
| commit | 53b68ac658569dea3f5a26745dacf2a9aca0b266 (patch) | |
| tree | 269af83394e84e2a7142dde87fb15dce413aa5c9 /ue3/mycpu/test/test1_program | |
| parent | ddf63e2765a6b225d18c59321595e69e1a126e0c (diff) | |
| parent | 3563c6dfd0f5f102cb748ecc6ad318601990515e (diff) | |
| download | ooprog-53b68ac658569dea3f5a26745dacf2a9aca0b266.tar.gz ooprog-53b68ac658569dea3f5a26745dacf2a9aca0b266.tar.bz2 ooprog-53b68ac658569dea3f5a26745dacf2a9aca0b266.zip | |
trying merging cpu-mm with default branch
Diffstat (limited to 'ue3/mycpu/test/test1_program')
| -rw-r--r-- | ue3/mycpu/test/test1_program | 13 |
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 | ||
| 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: | ||
