Risc-V-Asm/end.s

21 lines
327 B
ArmAsm
Raw Normal View History

2024-04-05 18:27:41 +02:00
# Just print the word 'exit' to the address 0x10000000
.globl end
end:
addi a0, x0, 0x65 # 'e'
li a1, 0x10000000
sb a0, (a1)
addi a0, x0, 0x78 # 'x'
sb a0, (a1)
addi a0, x0, 0x69 # 'i'
sb a0, (a1)
addi a0, x0, 0x74 # 't'
sb a0, (a1)
addi a0, x0, 0x0A
sb a0, (a1) # '\n'
2024-04-05 19:53:44 +02:00
ret