diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-11-08 21:07:22 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-11-08 21:07:22 -0600 |
| commit | c2d559d927c0f1ace1cbfef698163525c2ea332c (patch) | |
| tree | 41d0cfd57edb5f4bdf1d030cee56436439bce336 /tb/sim/sdram.S | |
| parent | d84b1ef6335007feef8cfa6e4849741d13f015e9 (diff) | |
Add sim: sdram
Diffstat (limited to 'tb/sim/sdram.S')
| -rw-r--r-- | tb/sim/sdram.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tb/sim/sdram.S b/tb/sim/sdram.S new file mode 100644 index 0000000..1efb58e --- /dev/null +++ b/tb/sim/sdram.S @@ -0,0 +1,14 @@ +.global reset + +reset: + ldr r0, =0x1000 + ldr r1, =0x2000 + mov r2, #0 + + .loop: + str r2, [r0], #4 + add r2, r2, #1 + cmp r0, r1 + bne .loop + + mov pc, lr |
