diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-10-16 16:02:34 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-10-16 16:02:34 -0600 |
| commit | 851e6ff85a8d2dabdfc0234abd0b284aed8e5031 (patch) | |
| tree | 362a90d5af577dbca5050611a9f5dfc38c33682f /tb/sim/hazards.S | |
| parent | bcb88de9d8848ec0ef1540637f20c460de41616a (diff) | |
Add original simulation testbench
Diffstat (limited to 'tb/sim/hazards.S')
| -rw-r--r-- | tb/sim/hazards.S | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tb/sim/hazards.S b/tb/sim/hazards.S new file mode 100644 index 0000000..3e6213a --- /dev/null +++ b/tb/sim/hazards.S @@ -0,0 +1,20 @@ +.global reset + +reset: + mov r5, #3 + mov r7, #6 + mov r9, #9 + mov sp, #256 + str r5, [sp, #-4] + mov r0, #69 + mov r1, #-10 + + .loop1: + tst r1, r1 + beq .loop2 + add r1, r1, #1 + sub r0, r0, #1 + b .loop1 + + .loop2: + b .loop2 |
