summaryrefslogtreecommitdiff
path: root/riscv/unalign.s
diff options
context:
space:
mode:
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
+
+