Skip to content

Commit bbf2215

Browse files
committed
docs (pt2): update getting-started to hardware.inc v5.3.0
1 parent d89719f commit bbf2215

File tree

3 files changed

+1151
-1062
lines changed

3 files changed

+1151
-1062
lines changed

src/part2/getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ We will make a [Breakout](https://en.wikipedia.org/wiki/Breakout_%28video_game%2
66

77
Open a terminal and make a new directory (`mkdir unbricked`), and then enter it (`cd unbricked`), just like you did for ["Hello, world!"](../part1/hello_world.md).
88

9-
Start by creating a file called `main.asm`, and include `hardware.inc` in your code.
9+
Start by creating a file called `main.asm`, and include [`hardware.inc`](https://raw.githubusercontent.com/gbdev/hardware.inc/v5.3.0/hardware.inc) in your code.
1010

1111
```rgbasm,linenos,start={{#line_no_of "" ../../unbricked/getting-started/main.asm:includes}}
1212
{{#include ../../unbricked/getting-started/main.asm:includes}}
@@ -23,9 +23,9 @@ But, having to remember all the numbers ([non-exhaustive list](https://gbdev.io/
2323

2424
:::tip
2525

26-
Don't worry if this flew over your head, we'll see an example below with `rLCDC` and `LCDCF_ON`.
26+
Don't worry if this flew over your head, we'll see an example below with `rLCDC` and `LCDC_ON`.
2727

28-
By the way, the `r` stands for "register", and the `F` in `LCDCF` stands for "flag".
28+
By the way, the `r` stands for "register".
2929

3030
:::
3131

@@ -78,7 +78,7 @@ But there is more to them than meets the eye, so we will start tackling them muc
7878
:::
7979

8080
Finally, let's turn the screen back on, and set a [background palette](../part1/palettes.md).
81-
Rather than writing the non-descript number `%10000001` (or $81 or 129, to taste), we make use of two constants graciously provided by `hardware.inc`: `LCDCF_ON` and `LCDCF_BGON`.
81+
Rather than writing the non-descript number `%10000001` (or $81 or 129, to taste), we make use of two constants graciously provided by `hardware.inc`: `LCDC_ON` and `LCDC_BG_ON`.
8282
When written to [`rLCDC`](https://gbdev.io/pandocs/LCDC), the former causes the PPU and screen to turn back on, and the latter enables the background to be drawn.
8383
(There are other elements that could be drawn, but we are not enabling them yet.)
8484
Combining these constants must be done using `|`, the *binary "or"* operator; we'll see why later.

0 commit comments

Comments
 (0)