From 2e90149c63eae96e5463e82150a0730c606840c9 Mon Sep 17 00:00:00 2001 From: Perry Kivolowitz Date: Thu, 9 Jun 2022 19:49:59 -0500 Subject: [PATCH] shuffled chapter numbers around --- README.md | 15 +++++++++------ section_1/funcs/README.md | 2 +- section_1/funcs/README2.md | 2 +- section_1/regs/README.md | 2 +- section_1/regs/ldr.md | 2 +- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6dda251..24bcdc8 100644 --- a/README.md +++ b/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 diff --git a/section_1/funcs/README.md b/section_1/funcs/README.md index 003c071..ae0c631 100644 --- a/section_1/funcs/README.md +++ b/section_1/funcs/README.md @@ -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). diff --git a/section_1/funcs/README2.md b/section_1/funcs/README2.md index b66ddd1..f65dbe0 100644 --- a/section_1/funcs/README2.md +++ b/section_1/funcs/README2.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. diff --git a/section_1/regs/README.md b/section_1/regs/README.md index 081b062..217ea58 100644 --- a/section_1/regs/README.md +++ b/section_1/regs/README.md @@ -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. diff --git a/section_1/regs/ldr.md b/section_1/regs/ldr.md index dc9899f..0f6346f 100644 --- a/section_1/regs/ldr.md +++ b/section_1/regs/ldr.md @@ -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.