From 6cd6e0f203472c916ed97bf3e5a15c43fab1d6e2 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Sun, 10 Jan 2016 15:37:13 -0800 Subject: [PATCH] Added pics 8,9,10 --- README.md | 6 ++++++ pics/hgrfont_08.png | Bin 0 -> 393 bytes pics/hgrfont_09.png | Bin 0 -> 408 bytes pics/hgrfont_10.png | Bin 0 -> 406 bytes 4 files changed, 6 insertions(+) create mode 100644 pics/hgrfont_08.png create mode 100644 pics/hgrfont_09.png create mode 100644 pics/hgrfont_10.png 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 0000000000000000000000000000000000000000..161ed1236b719d040290065b5b95b0b52019128c GIT binary patch literal 393 zcmeAS@N?(olHy`uVBq!ia0y~yU@~A}U~FJy28wjbo;m`g*aCb)T!A#h0Y=GLapFJ* zW0JSK3quF1tOt<8S>O>_%)r1c48n{Iv*t(u1=&kHeO=ifFmj12v&KL7dkYkj%?ybs zan8@pP0cF-av2z$i&7IyQd1PlGfOfQ+&z5*QuI>Uf#MH5T^vIyZoR#0n8j=;!g4`A zWQpL4uZAqQ*@~vh9NjlFAzJO>_%)r1c48n{Iv*t(u1=&kHeO=ifFmj12GaYQc?FST+%?ybs zan8@pP0cF-av2z$i&7IyQd1PlGfOfQ+&z5*QuI>Uf#UByT^vIyZoR!@n8j=;zk`M6UlL4P+xB|(J-XwwpzL7yO=gKX4;*$mbcrN?id+0`@yyivr5VND(J2>y$EfHmC3i1&YQD-i2v=Yw)nlV o|12~2Rh~O%KffW(pZoU(^ZGi2#owOR?*SR@>FVdQ&MBb@0I2DmZ2$lO literal 0 HcmV?d00001 diff --git a/pics/hgrfont_10.png b/pics/hgrfont_10.png new file mode 100644 index 0000000000000000000000000000000000000000..1461dbc75949dd87e84691f2b2d1b2bd547a6b83 GIT binary patch literal 406 zcmeAS@N?(olHy`uVBq!ia0y~yU@~A}U~FJy28wjbo;m`g*aCb)T!A#h0Y=GLapFJ* zW0JSK3quF1tOt<8S>O>_%)r1c48n{Iv*t(u1=&kHeO=ifFmj12S!PaV)&>g6W`;zR zIOpf)rskCZxeN@>MX8A;sVNHOnI#zt?w-B@DSD~wK=HSpE{-7;x8B|{%sOHq!VbKXOh(frK38P>kF+t;xh^snmyZjKdNih&aX2} zvfp}U_GJgns(fpix$5i!lgAeMmg!s#4BjELy1a~g*%@peEu9&vvFTKp`5J}~x7`BY zem-9p>NRWmc5mywX?(UmhS)n literal 0 HcmV?d00001