Skip to content

Commit eb7be1f

Browse files
committed
Move note about forgetting to reserve space outside of a warning box (#166)
1 parent 5e2a9bc commit eb7be1f

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/part1/header.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,7 @@ So the `jp` at $0100 went there, and started executing instructions (`3E CE` is
122122
But why is `EntryPoint` there?
123123
Well, as you may have figured out from the warnings RGBFIX printed, it *overwrites* the header area in the ROM.
124124
However, RGBLINK is **not** aware of the header (because RGBLINK is not only used to generate ROMs!), so you must explicitly reserve space for the header area.
125-
126-
:::danger Common mistake
127-
128-
Forgetting to reserve this space, and having a piece of code or data ending up there then overwritten, is a common beginner mistake that can be quite puzzling.
129-
Fortunately, RGBFIX since version 0.5.1 warns when it detects this mistake, as shown above.
130-
131-
:::
125+
Forgetting to do so is a common beginner mistake — code or data can end up there and get silently overwritten, which RGBFIX will warn you about as shown above.
132126

133127
So, we prevent disaster like this:
134128

0 commit comments

Comments
 (0)