Skip to content

Commit

Permalink
Merge pull request #42 from skrrb/fix-entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
below authored Dec 26, 2022
2 parents 81dc317 + c12f73b commit 9fc970d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Chapter 01/HelloWorld.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
// X16 - Mach System Call function number
//

.global start // Provide program starting address to linker
.global _start // Provide program starting address to linker
.align 2 // 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
_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
Expand Down

0 comments on commit 9fc970d

Please sign in to comment.