Small win tonight. I figured out how to implement "hot-keys" on the #C64. For example, while developing #BASICv2, hit F1 and see the directory, or save the file, whatever.
Turned out my first approach was close, I just didn't SCNKEY before I GETIN'd. Also turns out, you need to "peek" the keyboard buffer. I tried to "put a GETIN'd key back on and it didn't work so great. :)
Just did a small test and revisited this beautiful alternative to:
XXget a$:ifa$<>""goto XX
@living8bit for those who don't have an Ultimate64 but a NIC64+ or RRnet: there's "Kipper BASIC" to support your ethernet Hardware
#BASICv2 #KipperBASIC #commodore64 #ethernet
Well, I got it working. A #BASICv2 routine library for working with the #Ultimate64 TCP/IP stack. Here you see a BASICv2 program getting the default Apache page from a Debian 11 system. Full disclosure, what you're watching is actually from a 'netcat' of the data. Apache was not tolerant of the BASIC's speed so the whole page wouldn't get received. 'ncat' *was* more tolerant. The pic is a snippet of the code. Next up, a #6510 ASM library.
So I found a #C64 #BASICv2 program I wrote YEARS ago which converted Dec2Hex and Hex2Dec. It was 3 blocks on disk.
Before I go to bed, I "chill" with my C64, and had previously written a 2-liner Dec2Hex routine. Last night, I figured I'd go for a 1-2 liner Hex2Dec routine, and...yep, 1 line (minus the INPUT).
Sometimes it's fun to do these little tasks to see how far you've come. It helps fight that "imposter syndrome".