diff options
| author | manuel <manuel@nc8430.lan> | 2009-05-28 19:22:52 +0200 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-05-28 19:22:52 +0200 |
| commit | f67834dd18859ed333c88360f4141a99dc7db5dd (patch) | |
| tree | f668d395e258ce9601ddde380b85e9369265dedb /ue4/mycpu/test/test3_program | |
| parent | 064eaaed391835d0e0d057466f6f552e43e79bd8 (diff) | |
| download | ooprog-f67834dd18859ed333c88360f4141a99dc7db5dd.tar.gz ooprog-f67834dd18859ed333c88360f4141a99dc7db5dd.tar.bz2 ooprog-f67834dd18859ed333c88360f4141a99dc7db5dd.zip | |
push for me
Diffstat (limited to 'ue4/mycpu/test/test3_program')
| -rw-r--r-- | ue4/mycpu/test/test3_program | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ue4/mycpu/test/test3_program b/ue4/mycpu/test/test3_program new file mode 100644 index 0000000..ae5e9d2 --- /dev/null +++ b/ue4/mycpu/test/test3_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: | ||
