mirror of
https://github.com/Michaelangel007/apple2_hgr_font_tutorial.git
synced 2025-01-14 03:31:14 +00:00
Added pics 8,9,10
This commit is contained in:
parent
21273af373
commit
6cd6e0f203
@ -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
BIN
pics/hgrfont_08.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 393 B |
BIN
pics/hgrfont_09.png
Normal file
BIN
pics/hgrfont_09.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 408 B |
BIN
pics/hgrfont_10.png
Normal file
BIN
pics/hgrfont_10.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 406 B |
Loading…
x
Reference in New Issue
Block a user