We take a look at three different approaches to converting hex values to PETSCII.
To support 8-Bit Show And Tell:
Become a patron: https://patreon.com/8BitShowAndTell
One-time donation: https://paypal.me/8BitShowAndTell
Download .d64: https://8bitshowandtell.com/prg/tmphexpet.d64
Attach .d64 file then:
LOAD"TMP",8,1
SYS 32768
Back Arrow L to load, filename: conv8
Back Arrow 3 to assemble, S to start, Restore to return to TMP
6502 Assembly Language Programming by Lance A. Leventhal: https://archive.org/details/6502_Assembly_Language_Programming_by_Lance_Leventhal
C64 Programmer's Reference Guide: https://archive.org/details/c64-programmer-ref
BCD Programming:
https://youtu.be/vnhyGt6URYc
Credits music by: https://bedfordlevelexperiment.bandcamp.com
Index:
0:00 Intro
1:40 4-bit Hex to ASCII
3:14 Starting our program
6:39 Conversion 1: table driven
12:00 Conversion 2: branching conversion
17:10 Conversion 3: no-branch BCD weirdness
23:50 Converting 8-bit hex values to ASCII
28:13 Thanks to you!