We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 81dc317 + c12f73b commit 9fc970dCopy full SHA for 9fc970d
Chapter 01/HelloWorld.s
@@ -6,12 +6,12 @@
6
// X16 - Mach System Call function number
7
//
8
9
-.global start // Provide program starting address to linker
+.global _start // Provide program starting address to linker
10
.align 2 // Make sure everything is aligned properly
11
12
// Setup the parameters to print hello world
13
// and then call the Kernel to do it.
14
-start: mov X0, #1 // 1 = StdOut
+_start: mov X0, #1 // 1 = StdOut
15
adr X1, helloworld // string to print
16
mov X2, #13 // length of our string
17
mov X16, #4 // Unix write system call
0 commit comments