19 lines
325 B
ArmAsm
19 lines
325 B
ArmAsm
|
# 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'
|
||
|
ret
|