Skip to content

Commit

Permalink
Merge pull request #29 from 0xAX/chapter-2-update
Browse files Browse the repository at this point in the history
Rework the second chapter
  • Loading branch information
0xAX authored Jan 6, 2025
2 parents 13a4580 + edb15ed commit f4a4294
Show file tree
Hide file tree
Showing 12 changed files with 490 additions and 186 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ dkms.conf

# Our binaries
hello/hello
sum/sum
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Have fun!
Here are links to each post:

* [Part 1. Introduction](https://github.com/0xAX/asm/blob/master/content/asm_1.md)
* [Say hello to x86_64 Assembly part 2](https://github.com/0xAX/asm/blob/master/content/asm_2.md)
* [Part 2. The `x86_64` concepts](https://github.com/0xAX/asm/blob/master/content/asm_2.md)
* [Say hello to x86_64 Assembly part 3](https://github.com/0xAX/asm/blob/master/content/asm_3.md)
* [Say hello to x86_64 Assembly part 4](https://github.com/0xAX/asm/blob/master/content/asm_4.md)
* [Say hello to x86_64 Assembly part 5](https://github.com/0xAX/asm/blob/master/content/asm_5.md)
Expand Down
2 changes: 1 addition & 1 deletion content/asm_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ _start:
syscall
;; Specify the number of the system call (60 is `sys_exit`).
mov rax, 60
;; Set the first argument of `sys_exit` to `0`. The `0` status code is success.
;; Set the first argument of `sys_exit` to 0. The 0 status code is success.
mov rdi, 0
;; Call the `sys_exit` system call.
syscall
Expand Down
554 changes: 414 additions & 140 deletions content/asm_2.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions content/assets/rax.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f4a4294

Please sign in to comment.