How I Programmed Truchet Tiles in 6510 Assembly Code On The Commodore 64 @8_Bit
How I Programmed Truchet Tiles in 6510 Assembly Code On The Commodore 64  @8_Bit
Uploaded August 2025 | Updated November 2026, 1 week ago
It's time for a code walkthrough for the Truchet Tiles Commodore 64 program demonstrated in a previous video. We cover the BASIC stub that makes a machine language program RUNnable, the PETSCII characters used for the Truchet tiles, initializing colour memory, how the 30 Truchet patterns of varying sizes are stored in memory for easy access, plotting the tiles to screen, and more. There's also a short bonus about a tile-based mini RPG I worked on years ago.

Previous Truchet video: youtu.be/MVQJykMJSH0

Download the Truchet D64:
8bitshowandtell.com/downloads/truchet.d64
LOAD"TMP",8,1
SYS 32768

Viewer Ken Jennings has ported this program to 8-bit Atari, with some excellent comments explaining his methodology. Check it out here: github.com/kenjennings/Atari-Truchet

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 Loading TMP, code, quick run
3:23 BASIC Stub RUN vs. SYS
5:52 BASIC Stub explanation
7:40 Labels and variables, tile screen codes
13:23 Program, screen initialization
18:57 Pattern pointers and definitions
24:46 Pattern width, height, data pointer
28:22 Draw initialization and character point
31:09 Advance to next pattern and screen column
33:53 Advance to next row
38:10 Wait key, advance to next pattern, loop
41:11 Bonus: Minima Reloaded tile-based RPG
43:48 Thanks, credits
How I Programmed Truchet Tiles in 6510 Assembly Code On The Commodore 64Commodore 64: Opening The Borders (Type-In From Zzap!64 Magazine)Converting C64 Turbo Macro Pro Source Code to A Plain Ol Text FileFixing a Bug in Rodnay Zaks Programming the 6502Hardware Computer Flash Cards - Quiz Game by Edu-Cards4-Bit Video Games: Tron, Scramble, Lupin, and Caveman by TomyBest Ever VIC-20 Cart? Penultimate+2Commodore Breadbin Case Variations: C64, VIC-20, C1633 Year-Old Commodore 64 Easter Egg Hidden In A Printer InterfaceViewing the 2024 Solar Eclipse with Commodore 64s 1984 Sky Travel8-Bit Show And Tell: Year One RecapWhat is Game 31? Recreating Satoru Iwatas First Inspiration
8-Bit Show And Tell |

How I Programmed Truchet Tiles in 6510 Assembly Code On The Commodore 64

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER