diff --git a/README.md b/README.md index d12be26..eaec131 100644 --- a/README.md +++ b/README.md @@ -652,6 +652,7 @@ We're almost ready to run this! We just need to initialize one variable -- where And with any luck you should see the at sign `@` in the top-left. +![Screenshot 8](pics/hgrfont_08.png?raw=true) ## X Cursor Position @@ -664,6 +665,8 @@ Enter in: 306:2 300G +![Screenshot 9](pics/hgrfont_09.png?raw=true) + This works because we are using the 6502 Indirect Zero-Page Y addressing mode to store the destination pixels with the `STA` instruction. Since the Y-register must _always_ be used in this addressing mode we get a column offset "for free." :-) 357: STA ($F5),Y ; screen[col] = A @@ -754,6 +757,9 @@ And to draw the new glyph, enter in: We should see the last character of the 3 `@@@` change to `D`. +![Screenshot 10](pics/hgrfont_10.png?raw=true) + + ## DrawChar() version 3 Let's remove the hard-coded printing of the glyph and use the character data we really want to draw. This means we need to "fix-up" the temporary source pointer to the font glyph data. Since we have 8 bytes/glyph we need to manually calculate the array offset. diff --git a/pics/hgrfont_08.png b/pics/hgrfont_08.png new file mode 100644 index 0000000..161ed12 Binary files /dev/null and b/pics/hgrfont_08.png differ diff --git a/pics/hgrfont_09.png b/pics/hgrfont_09.png new file mode 100644 index 0000000..0fcc1fa Binary files /dev/null and b/pics/hgrfont_09.png differ diff --git a/pics/hgrfont_10.png b/pics/hgrfont_10.png new file mode 100644 index 0000000..1461dbc Binary files /dev/null and b/pics/hgrfont_10.png differ