Added pics 8,9,10

This commit is contained in:
michaelangel007 2016-01-10 15:37:13 -08:00
parent 21273af373
commit 6cd6e0f203
4 changed files with 6 additions and 0 deletions

View File

@ -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.

BIN
pics/hgrfont_08.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

BIN
pics/hgrfont_09.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

BIN
pics/hgrfont_10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B