summaryrefslogtreecommitdiff
path: root/tb/sim/sdram.S
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-11-08 21:07:22 -0600
committerAlejandro Soto <alejandro@34project.org>2022-11-08 21:07:22 -0600
commitc2d559d927c0f1ace1cbfef698163525c2ea332c (patch)
tree41d0cfd57edb5f4bdf1d030cee56436439bce336 /tb/sim/sdram.S
parentd84b1ef6335007feef8cfa6e4849741d13f015e9 (diff)
Add sim: sdram
Diffstat (limited to 'tb/sim/sdram.S')
-rw-r--r--tb/sim/sdram.S14
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