16 lines
305 B
ArmAsm
16 lines
305 B
ArmAsm
.section .data
|
|
message:
|
|
.asciz "Hello from libzomutils!\n"
|
|
|
|
.section .text
|
|
.global _start
|
|
|
|
_start:
|
|
# Load the address of the message into a0 (first argument register)
|
|
la a0, message
|
|
|
|
# Call the puts function from libzomutils
|
|
call puts
|
|
|
|
# Exit the program
|
|
call exit
|