Skip to content

Commit fa5bb50

Browse files
committed
Make some misc formatting/housekeeping corrections
1 parent c51a90c commit fa5bb50

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/part1/assembly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Due to CPU limitations, not all operand combinations are valid for `ld` and many
5252

5353
::: tip:🤔
5454

55-
RGBDS has an [instruction reference](https://rgbds.gbdev.io/docs/v0.5.1/gbz80.7) worth bookmarking, and you can also consult it locally with `man 7 gbz80` if RGBDS is installed on your machine (except Windows...).
55+
RGBDS has an [instruction reference](https://rgbds.gbdev.io/docs/gbz80.7) worth bookmarking, and you can also consult it locally with `man 7 gbz80` if RGBDS is installed on your machine (except Windows...).
5656
The descriptions there are more succinct, since they're intended as reminders, not as tutorials.
5757

5858
:::

src/part1/jumps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Since `bc` contains the amount of bytes that still need to be copied, it's trivi
7878

7979
:::
8080

81-
`ld a, b` and `or c` "bitwise OR" `b` and `c` together; it's enough to know for now that it leaves 0 in `a` if and only if `bc` == 0.
81+
`ld a, b` and `or a, c` "bitwise OR" `b` and `c` together; it's enough to know for now that it leaves 0 in `a` if and only if `bc` == 0.
8282
And `or` updates the Z flag!
8383
So, after line {{#line_no_of "^\s*or a, c" ../assets/hello-world.asm:memcpy}}, the Z flag is set if and only if `bc` == 0, that is, if we should exit the loop.
8484

src/part1/memory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@ Mask ROM is created by literally punching holes into a layer of silicon using ac
145145
Good luck writing to that!
146146
<br>
147147
"ROM" is sometimes (mis)used to refer to "persistent memory" chips, such as flash memory, whose write functionality was disabled.
148-
Most bootleg / "repro" Game Boy cartridges you can find nowadays actually contain flash; this is why you can reflash them using specialized hardware, but not original cartridges.
148+
Most bootleg / "repro" Game Boy cartridges you can find nowadays actually contain flash; this is why you can reflash them using specialized hardware, but original cartridges cannot be.

src/part1/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This is because devkitPro, a popular homebrew development bundle, includes MSYS2
5757
## Code editor
5858

5959
Any code editor is fine; I personally use [Sublime Text](https://www.sublimetext.com) with its [RGBDS syntax package](https://packagecontrol.io/packages/RGBDS); however, you can use any text editor, including Notepad, if you're crazy enough.
60-
Awesome GBDev has [a section on syntax highlighting packages](https://gbdev.io/resources.html#syntax-highlighting-packages), see there if your favorite editor supports RGBDS.
60+
Awesome GBDev has [a section on syntax highlighting packages](https://gbdev.io/resources#syntax-highlighting-packages), see there if your favorite editor supports RGBDS.
6161

6262
## Emulator
6363

src/part1/toolchain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ It is responsible for reading the source code (in our case, `hello-world.asm` an
1212
RGBASM does not always have enough information to produce a full ROM, so it does most of the work, and stores its intermediary results in what's known as *object files* (hence the `.o` extension).
1313

1414
RGBLINK is a *linker*.
15-
Its job is taking object files (or, like in our case, just one), and "linking" them into a ROM.
15+
Its job is taking object files (or, like in our case, just one), and "linking" them into a ROM, which is to say: filling the aforementioned "holes".
1616
RGBLINK's purpose may not be obvious with programs as simple as this Hello World, but it will become much clearer in Part Ⅱ.
1717

1818
So: Source code → `rgbasm` → Object files → `rgblink` → ROM, right?

src/part1/tracing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Well, there are several syntaxes for Game Boy assembly, and BGB doesn't use RGBD
2020
We can fix that in the options, which we can access by either:
2121
- Right-clicking the screen and selecting "Options"
2222
- In the debugger, open the "Window" menu, and select "Options"
23-
- Press F11 while focusing either the screen or debugger
23+
- Press <kbd>F11</kbd> while focusing either the screen or debugger
2424

2525
BGB has a *ton* of options, but don't worry, it's got good defaults, so we don't need to look at most of them for now.
2626
Select the "Debug" tab, and set "Disasm syntax" to "rgbds".

0 commit comments

Comments
 (0)