summaryrefslogtreecommitdiff
path: root/riscv/unalign.s
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-07-10 22:18:39 +0200
committerCarlos Maiolino <[email protected]>2025-07-10 22:18:39 +0200
commit8c6fc0c15415b32080a848bbde640e104098cf13 (patch)
tree04a21bd28f9dc82c8e216390d6208ed93b9bcd11 /riscv/unalign.s
Initial drop
Add some riscv code Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'riscv/unalign.s')
-rw-r--r--riscv/unalign.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/riscv/unalign.s b/riscv/unalign.s
new file mode 100644
index 0000000..5556349
--- /dev/null
+++ b/riscv/unalign.s
@@ -0,0 +1,23 @@
+.globl _start
+
+.section .data
+.align 1
+i: .half 0xad
+.align 2
+x: .word 0xde
+.align 1
+j: .half 0xf0
+.align 3
+y: .dword 0xbe
+
+.section .text
+_start:
+ .byte 0xaa
+
+exit:
+ .align 2
+ li a0, 5
+ li a7, 93
+ ecall
+
+