Let’s take a look at another one-line Commodore 64 BASIC program. This one by Carl G. displays random dice, utilizing the Commodore 64’s custom character ability in an unusual way. We examine how the program works, and along the way, how BASIC code is stored in memory. An unintended side-effect of the program’s implementation is that the program’s display changes somewhat on different Commodore 64 models and emulators, due to how RAM initializes, so we dive into that topic too, examining the results on a couple emulators and five different Commodore 64 computers.
Carl G.’s one-line program on stigc.dk :
https://stigc.dk/c64/basic/?s=2M1AI8Pd2NTU2MjfSMbSwCgjy9Atx9ghS0Qjyc9HQ09Qy0zaz0LS2cvcP8Vc632AMQyAIpN7t7EfmIlFgGQQBF0JhoHEA
To support 8-Bit Show And Tell:
Become a patron: https://patreon.com/8BitShowAndTell
One-time donation: https://paypal.me/8BitShowAndTell
2nd channel: https://youtube.com/channel/UCAgWzEh5c8391eJnELDy9OA
How to Determine Commodore 64 KERNAL Version (short)
All the Commodore 64 KERNAL Revisions: Bugs, Fixes, and More! (full 30 minute video)
Index:
0:00 Typing in one-line dice
4:05 RUNning the program
6:10 Code explanation
10:20 Examining the program in machine language monitor
14:48 Examining the blank area at the bottom of screen
17:47 Screen code 32: the space character’s definition
22:30 RAM defaults: Calgary Olympics NTSC C64
25:03 Swedish PAL Breadbin (with Robin From The Future)
29:29 Chinese PAL 64C
31:45 5-pin NTSC Breadbin + Back to NTSC 64C
34:27 How to "fix"
38:03 Potential flaw in this idea
42:04 Thanks to Carl G. and my patrons!