What is Nostr?
Soulfire Jarexi Backblaze ΘΔ /
npub13rl…3sz8
2023-12-29 12:03:37
in reply to nevent1q…z66s

Soulfire Jarexi Backblaze ΘΔ on Nostr: I'm not really sure I understand what much of this means // // Assembler program to ...

I'm not really sure I understand what much of this means


//
// Assembler program to print "Hello World!"
// to stdout.
//
// X0-X2 - parameters to Unix system calls
// X16 - Mach System Call function number
//

.global _start // Provide program starting address to linker
.align 4 // Make sure everything is aligned properly

// Setup the parameters to print hello world
// and then call the Kernel to do it.
_start: mov X0, #1 // 1 = StdOut
adr X1, helloworld // string to print
mov X2, #13 // length of our string
mov X16, #4 // Unix write system call
svc #0x80 // Call kernel to output the string

// Setup the parameters to exit the program
// and then call the kernel to do it.
mov X0, #0 // Use 0 return code
mov X16, #1 // System call number 1 terminates this program
svc #0x80 // Call kernel to terminate the program

helloworld: .ascii "Hello World!\n"
Author Public Key
npub13rlrzypl47uhpu0q0qvrg6y8k8lw9q9twvk64mprzem0w405ulhs6z3sz8