mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 02:06:48 +08:00
shuffled chapter numbers around
This commit is contained in:
parent
cb67adbcb5
commit
2e90149c63
5 changed files with 13 additions and 10 deletions
15
README.md
15
README.md
|
|
@ -44,12 +44,15 @@ the 64 bit ARM Instruction Set Architecture (ISA).
|
|||
| ------- | ------- |
|
||||
| 1 | [Hello World](./section_1/hello_world/README.md) |
|
||||
| 2 | [If Statements](./section_1/if/README.md) |
|
||||
| 3 | [While Loops](./section_1/while/README.md) |
|
||||
| 4 | [For Loops, Continue and Break](./section_1/for/README.md) |
|
||||
| 5 | [Interlude - Registers](./section_1/regs/README.md) |
|
||||
| 6 | [Interlude - Load and Store](./section_1/regs/ldr.md) |
|
||||
| 7 | [Calling and Returning From Functions](./section_1/funcs/README.md) |
|
||||
| 8 | [Passing Parameters To Functions](./section_1/funcs/README2.md) |
|
||||
| 3 | Loops |
|
||||
| 3A | [While Loops](./section_1/while/README.md) |
|
||||
| 3B | [For Loops](./section_1/for/README.md) |
|
||||
| 3C | [Continue](./section_1/for/README.md#implementing-a-continue)
|
||||
| 3D | [Break](./section_1/for/README.md#implementing-a-break)
|
||||
| 4 | [Interlude - Registers](./section_1/regs/README.md) |
|
||||
| 5 | [Interlude - Load and Store](./section_1/regs/ldr.md) |
|
||||
| 6 | [Calling and Returning From Functions](./section_1/funcs/README.md) |
|
||||
| 7 | [Passing Parameters To Functions](./section_1/funcs/README2.md) |
|
||||
|
||||
## Section 2 - Stuff
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Section 1 / Chapter 7 / Calling and Returning From Functions
|
||||
# Section 1 / Chapter 6 / Calling and Returning From Functions
|
||||
|
||||
Calling functions, passing parameters to them and receiving back return values is basic to using `C` and and `C++`. Calling methods (which are functions connected to classes) is similar but with enough differences to warrant its own discussion to be provided later in the chapter on [structs](../struct/structs.md).
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Section 1 / Chapter 8 / Passing Parameters To Functions
|
||||
# Section 1 / Chapter 7 / Passing Parameters To Functions
|
||||
|
||||
Up to 8 parameters can be passed directly via registers. Each parameter can be up to the size of an address, long or double (8 bytes). If you need to pass more than 8 parameters or you need to pass parameters which are larger than 8 bytes or are `structs`, you would use a different technique described later.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Section 1 / Chapter 5 / Interlude - Registers
|
||||
# Section 1 / Chapter 4 / Interlude - Registers
|
||||
|
||||
We have discussed and used registers in the previous chapters without explanation. This chapter
|
||||
introduces the concept of registers and explains why registers are critical.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Section 1 / Chapter 6 / Interlude - Load and Store
|
||||
# Section 1 / Chapter 5 / Interlude - Load and Store
|
||||
|
||||
In this section we will review the `ldr` and `str` families of instructions.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue