One-line C64 BASIC Dice Program: Default RAM Initialization @8_Bit
One-line C64 BASIC Dice Program: Default RAM Initialization  @8_Bit
Uploaded February 2026 | Updated November 2026, 1 week ago
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: patreon.com/8BitShowAndTell
One-time donation: paypal.me/8BitShowAndTell
2nd channel: youtube.com/channel/UCAgWzEh5c8391eJnELDy9OA

How to Determine Commodore 64 KERNAL Version (short)
youtube.com/shorts/XFGNtxEHfU8

All the Commodore 64 KERNAL Revisions: Bugs, Fixes, and More! (full 30 minute video)
youtu.be/If4mcprqBZw

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!
One-line C64 BASIC Dice Program: Default RAM InitializationBook Club: Intro to 6510 Machine Language from Chapter 7 of Programming the C64Steve Jackson: My Favourite Game Designer(s)8-Bit Book Club: Mapping the Commodore 64This Game Cheats? Hal Labs LeMans for Commodore 64 (Part 3)Determining If A Cartridge is Ultimax / MAX Machine? Commodore 64 #retrogaming #c64 #8bit #shortsTime Machine? Or VIC-20 24KB RAM 7 Cartridge Expander?Commodore-Inspired Vinyl Records and Compact DiscsTI-99/4A: 40th Birthday (Party?)Hex to ASCII Conversion: Lance A. Leventhals 6502 Assembly Language ProgrammingBook Club: Commodore 64 Programmers Reference GuideSoft-Patching C64 ROMs for Benchmark BASIC: 6510 Assembly Code Walkthrough
8-Bit Show And Tell |

One-line C64 BASIC Dice Program: Default RAM Initialization

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER