diff options
Diffstat (limited to 'ue3/mycpu/test/test_prog')
| -rw-r--r-- | ue3/mycpu/test/test_prog | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ue3/mycpu/test/test_prog b/ue3/mycpu/test/test_prog index 74dac21..b50575b 100644 --- a/ue3/mycpu/test/test_prog +++ b/ue3/mycpu/test/test_prog | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | # set R2 = 10 | 1 | # set R2 = 10 |
| 2 | |||
| 2 | load R2, R1 | 3 | load R2, R1 |
| 3 | 4 | ||
| 4 | # start of loop | 5 | # start of loop |
| @@ -8,6 +9,7 @@ sub R4, R3, R2 | |||
| 8 | test R4 | 9 | test R4 |
| 9 | jumpz EndLoop | 10 | jumpz EndLoop |
| 10 | write WDEZ, R3 | 11 | write WDEZ, R3 |
| 12 | store R3, R1 | ||
| 11 | jumpa Loop | 13 | jumpa Loop |
| 12 | 14 | ||
| 13 | label EndLoop: | 15 | label EndLoop: |
