Uploaded May 2023 | Updated November 2026, 1 week ago
Besides the famous 10 PRINT, one of my favourite type-in programs from the Commodore 64 User's Guide is "More Bouncing Balls" in which a ball bounces off the borders of the screen. Inspired by Josip Retro Bits' 2-line version of this program, I attempt to squeeze it down to one line, with some other diversions along the way.
Check out Josip's channel for more C64 programming: youtube.com/@JosipRetroBits
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
Index:
0:00 The Commodore 64 User's Guide
2:52 Adding a clear screen to 10 PRINT
7:57 More Bouncing Balls
14:32 Josip Retro Bits' 2-line version
22:23 A different approach: what's it doing?
26:41 Implementing a simple oscillator
32:25 POKEing the ball back in!
35:44 The final one-line version
38:00 Potential improvements?
40:25 Thanks to Josip, my patrons, and you!
Besides the famous 10 PRINT, one of my favourite type-in programs from the Commodore 64 User's Guide is "More Bouncing Balls" in which a ball bounces off the borders of the screen. Inspired by Josip Retro Bits' 2-line version of this program, I attempt to squeeze it down to one line, with some other diversions along the way.
Check out Josip's channel for more C64 programming: youtube.com/@JosipRetroBits
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
Index:
0:00 The Commodore 64 User's Guide
2:52 Adding a clear screen to 10 PRINT
7:57 More Bouncing Balls
14:32 Josip Retro Bits' 2-line version
22:23 A different approach: what's it doing?
26:41 Implementing a simple oscillator
32:25 POKEing the ball back in!
35:44 The final one-line version
38:00 Potential improvements?
40:25 Thanks to Josip, my patrons, and you!









![Size Optimizing Tricks in 10 PRINT Orthogonal for Commodore 64
We look at a new take on the famous 10 PRINT program, which makes an orthogonal (at right angles to the screen) maze instead of the classic diagonal maze. Additionally, its been optimized down to a 32 byte file size for entry in a competition. It turns out there are some complications with the tricks used when run on a real Commodore 64. So we dig into it to figure out whats going on and end up discussing BASIC program structure, how PRG files are stored on disk, and how real C64 RAM initializes differently than on C64 emulators.
10 PRINT orthogonal [32 bytes] by Logiker: https://csdb.dk/release/?id=201393
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
Trick Shoot TEN by Jim Happel: https://bunsen.itch.io/trick-shoot-ten-by-jim-happel
How Animated Commodore 64 Disk Directories Work: https://youtu.be/HVMjLUhOX90
Even More Commodore 64 BASIC Optimizations: https://youtu.be/J9QH-tUJB2s
For more information about the PRG file format and more, check out Inside Commodore DOS: https://archive.org/details/Inside_Commodore_Dos_1984_Datamost_a/page/n49/mode/2up
End credits music by https://bedfordlevelexperiment.bandcamp.com/
Index:
0:00 Intro
2:15 10 PRINT orthogonal BASIC listing
4:36 Why the program wont LOAD...
8:41 Why the program cant be edited
12:03 Why the program loads at $0802
17:13 Testing our unoptimizations
18:23 Thanks to my patrons! Size Optimizing Tricks in 10 PRINT Orthogonal for Commodore 64](https://i.ytimg.com/vi/oPtjcSsS2MI/mqdefault.jpg)
