C64 Assembly - TIPS 3 - Amaze Maze
C64 – TIPS 3 | The Famous BASIC Maze and 6502 Assembly Welcome to a new collection of tricks for the legendary Commodore 64! In this episode we explore one of the most famous programming routines in home computer history – the legendary infinite maze created using only two characters. We start with the famous BASIC line: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 and discover how random numbers create endless maze patterns across the screen. After that, we move to 6502 assembly language and show two different ways to recreate the same effect. The first method uses the C64 KERNAL character output routine at address $FFD2 and the SID chip noise generator for random values. The second method writes directly to screen memory, achieving an incredible speed while continuously generating new maze patterns. In this episode you will learn: How the famous C64 BASIC maze works How to use the SID noise generator for random numbers The difference between PETSCII and screen character codes Why direct memory access is much faster How pointers and indexes work in 6502 assembly At the end, there is also a small challenge – a short assembly program that you can analyze and discover what it does. Enjoy this new C64 trick and continue exploring the power of the legendary 6502 processor! Visit us at techfokus.rs Best regards! #C64 #Commodore64 #6502Assembly #AssemblyLanguage #RetroComputing #RetroProgramming #BASICProgramming #PETSCII #SIDChip #MazeGenerator #MachineCode #8bitComputing #VintageComputers

TMS340 Family - The First Programmable Graphics Processor

Microcontroller Magic: Under the Hood of “Sum Ergo Demonstro”

the true reason C++ always wins

The hidden logic behind #, @, & and §

Elite: "The game that couldn't be written"

AI buys robot and car, does exactly what experts warned.

The Future of Home Computing: Radical Changes Ahead?

EXPOSED: The Dirty Little Secret of AI (On a 1979 PDP-11)

1 Bit of Soviet Core Memory

I turned an old van into a 2-STORY tiny house

C64 Action Replay: The Greatest Utility Cartridge Ever Made?

We Programmed a 60s Computer

ELKS on an 8088: Linux & Networking in 512 K

Microsoft Just Released Their Own Linux Distro: Should You Be Worried?

The Pentium III Serial Number Scandal: Intel's Biggest Privacy Mistake

Demonstration of a Sphere microcomputer from 1975

Planet X2 for the Commodore 64, The Making Of.

Is the Commodore 64 Ultimate the Best 8-Bit Ever?

Why every 80s home computer used BASIC (almost)

