diff options
| author | Günther Neuwirth <e0626638@student.tuwien.ac.at> | 2009-05-12 15:27:58 +0200 |
|---|---|---|
| committer | Günther Neuwirth <e0626638@student.tuwien.ac.at> | 2009-05-12 15:27:58 +0200 |
| commit | 34483e07a0548d32651cda4ca4282f3cf8cae870 (patch) | |
| tree | ef499b9850e60cc45ca4de1605c962a5cc040a8f /ue3/mycpu/test | |
| parent | fe1ef6b47f59899e8687bb1dcc92eba1d103a08f (diff) | |
| download | ooprog-34483e07a0548d32651cda4ca4282f3cf8cae870.tar.gz ooprog-34483e07a0548d32651cda4ca4282f3cf8cae870.tar.bz2 ooprog-34483e07a0548d32651cda4ca4282f3cf8cae870.zip | |
adding rest of files
Diffstat (limited to 'ue3/mycpu/test')
| -rw-r--r-- | ue3/mycpu/test/test_prog | 13 | ||||
| -rw-r--r-- | ue3/mycpu/test/test_prog_mem | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ue3/mycpu/test/test_prog b/ue3/mycpu/test/test_prog new file mode 100644 index 0000000..7c5f929 --- /dev/null +++ b/ue3/mycpu/test/test_prog | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # set R2 = 10 | ||
| 2 | load R1, R2 | ||
| 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: | ||
diff --git a/ue3/mycpu/test/test_prog_mem b/ue3/mycpu/test/test_prog_mem new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/ue3/mycpu/test/test_prog_mem | |||
| @@ -0,0 +1 @@ | |||
| 10 | |||
