You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/part2/getting-started.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ We will make a [Breakout](https://en.wikipedia.org/wiki/Breakout_%28video_game%2
6
6
7
7
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).
8
8
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.
@@ -23,9 +23,9 @@ But, having to remember all the numbers ([non-exhaustive list](https://gbdev.io/
23
23
24
24
:::tip
25
25
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`.
27
27
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".
29
29
30
30
:::
31
31
@@ -78,7 +78,7 @@ But there is more to them than meets the eye, so we will start tackling them muc
78
78
:::
79
79
80
80
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`.
82
82
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.
83
83
(There are other elements that could be drawn, but we are not enabling them yet.)
84
84
Combining these constants must be done using `|`, the *binary "or"* operator; we'll see why later.
0 commit comments