mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-23 04:46:47 +08:00
gave up on chapter designations in the chapters
This commit is contained in:
parent
45db9bbb07
commit
978ef14fb5
10 changed files with 24 additions and 18 deletions
24
README.md
24
README.md
|
|
@ -45,16 +45,22 @@ the 64 bit ARM Instruction Set Architecture (ISA).
|
||||||
| 1 | [Hello World](./section_1/hello_world/README.md) |
|
| 1 | [Hello World](./section_1/hello_world/README.md) |
|
||||||
| 2 | [If Statements](./section_1/if/README.md) |
|
| 2 | [If Statements](./section_1/if/README.md) |
|
||||||
| 3 | Loops |
|
| 3 | Loops |
|
||||||
| 3 a | [....While Loops](./section_1/while/README.md) |
|
| 3 a | [.... While Loops](./section_1/while/README.md) |
|
||||||
| 3 b | [....For Loops](./section_1/for/README.md) |
|
| 3 b | [.... For Loops](./section_1/for/README.md) |
|
||||||
| 3 c | [....Implementing Continue](./section_1/for/README.md#implementing-a-continue)
|
| 3 c | [.... Implementing Continue](./section_1/for/README.md#implementing-a-continue)
|
||||||
| 3 d | [....Implementing Break](./section_1/for/README.md#implementing-a-break)
|
| 3 d | [.... Implementing Break](./section_1/for/README.md#implementing-a-break)
|
||||||
| 4 | Interludes |
|
| 4 | Interludes |
|
||||||
| 4 a | [....Registers](./section_1/regs/README.md) |
|
| 4 a | [.... Registers](./section_1/regs/README.md) |
|
||||||
| 4 b | [....Load and Store](./section_1/regs/ldr.md) |
|
| 4 b | [.... Load and Store](./section_1/regs/ldr.md) |
|
||||||
| 5 | [Calling and Returning From Functions](./section_1/funcs/README.md) |
|
| 5 | Functions |
|
||||||
| 6 | [Passing Parameters To Functions](./section_1/funcs/README2.md) |
|
| 5 a | [.... Calling and Returning](./section_1/funcs/README.md) |
|
||||||
| 7 | [FizzBuzz - a Complete Program](./section_1/fizzbuzz/README.md) |
|
| 5 b | [.... Passing Parameters](./section_1/funcs/README2.md) |
|
||||||
|
| 6 | [FizzBuzz - a Complete Program](./section_1/fizzbuzz/README.md) |
|
||||||
|
| 7 | Structs |
|
||||||
|
| 7 a | [.... Alignment](./section_1/structs/alignment.md) |
|
||||||
|
| 7 b | [.... Defining](./section_1/structs/defining.md) |
|
||||||
|
| 7 c | [.... Using](./section_1/structs/using.md) |
|
||||||
|
| 8 | [Casting](./section_1/casting/README.md) |
|
||||||
|
|
||||||
## Section 2 - Stuff
|
## Section 2 - Stuff
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Section 1 / Chapter 7 / FizzBuzz
|
# FizzBuzz
|
||||||
|
|
||||||
In this chapter we build the classic tech interview question: FizzBuzz.
|
In this chapter we build the classic tech interview question: FizzBuzz.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Section 1 / Chapters 3 b, c and d / For Loops, Continue and Break
|
# For Loops, Continue and Break
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Section 1 / Chapter 5 / Calling and Returning From Functions
|
# 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).
|
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 6 / Passing Parameters To Functions
|
# 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.
|
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 1 / Hello World
|
# Hello World
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Section 1 / Chapter 2 / The `if` Statement
|
# The `if` Statement
|
||||||
|
|
||||||
We will begin with the `if` statement followed by a discussion of the `if / else`.
|
We will begin with the `if` statement followed by a discussion of the `if / else`.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Section 1 / Chapter 4 a / Interlude - Registers
|
# Interlude - Registers
|
||||||
|
|
||||||
We have discussed and used registers in the previous chapters without explanation. This chapter
|
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.
|
introduces the concept of registers and explains why registers are critical.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Section 1 / Chapter 4 b / Interlude - Load and Store
|
# Interlude - Load and Store
|
||||||
|
|
||||||
In this section we will review the `ldr` and `str` families of instructions.
|
In this section we will review the `ldr` and `str` families of instructions.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Section 1 / Chapter 3 a / While Loops
|
# While Loops
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue