aboutsummaryrefslogtreecommitdiff
path: root/prog/src/test_prog.s
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-23 20:51:28 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-23 20:51:28 +0200
commita515876002bef28d11e79ee9f74baa34790d86ce (patch)
tree919a124b96cb08561e9eb9b2623ed5d0e1efed86 /prog/src/test_prog.s
parenteb163582941af4b3fac8daf00665e1b704fd7c23 (diff)
downloadriscv_cpu-a515876002bef28d11e79ee9f74baa34790d86ce.tar.gz
riscv_cpu-a515876002bef28d11e79ee9f74baa34790d86ce.zip
support for lb, lh, lbu, lhu, sb, sh
Diffstat (limited to 'prog/src/test_prog.s')
-rw-r--r--prog/src/test_prog.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/prog/src/test_prog.s b/prog/src/test_prog.s
index caa6d8c..675a2b8 100644
--- a/prog/src/test_prog.s
+++ b/prog/src/test_prog.s
@@ -2,6 +2,15 @@
.globl test_prog
test_prog:
+
+ la t0, 0x00100000
+ li t1, 0x00ff0000
+
+ sw t1, 0(t0)
+ la t0, 0x00100002
+ lb t2, 0(t0)
+
+
li t0, 0xFFFFFFFF
li t1, 0x33333333
li t2, 0x88888888