Commodore 64 | Crazy Screensaver in Assembly @JosipRetroBits
Commodore 64 | Crazy Screensaver in Assembly  @JosipRetroBits
Uploaded October 2021 | Updated November 2026, 3 hours ago
Using Supermon 64 to write crazy screensaver using random numbers from SID.

1.) LDA #FF
Put value 255 into Akku

2.) STA $D40E
Store Akku to $D40E (54286)
SID Register 14 (Voice 3) Lo-Byte to max value 255

3.) STA $D40F
Store Akku to $D40E (54287)
SID Register 15 (Voice 3), Hi-Byte to max value 255
(Point 2 and 3 means, set Voice 3 to highest frequency. Read the C64 manual on page 158/159 to see what Hi-Byte/Lo-Byte settings correspond to which note)

4.) LDA #$80
Load Value 128 into Akku

5.) STA $D412
Store Value 128 to $D412 (54290) = Sid Register 18
That's setting the "Waveform" for Voice 3.
Thought there are only this values possible:
129 (Noise), 65 (Rectangle), 33 (Sawtooth), 17 (Triangle)

6.) LDA $D41B
Load Akku with value stored in 54299
Sid Register Value 27 (Oscillator Voice 3)
(read the actual value to get a random number)

7.) JSR $FFD2
Call Kernal-Routine CHROUT
Outputs the random Character (number stored in Akku) on Screen

8.) LDA #$20
Load Value 32 into Akku

9.) JSR $FFD2
Call Kernal-Routine CHROUT
Outputs the Character (number stored in Akku) on Screen
$20 (Dec 32) = SPACE

10.) JMP $100D
It jumps to LDA $D41B to Load Akku with new SID value
Commodore 64 | Crazy Screensaver in AssemblyMeasure Temperature with Commodore 6410 Print Maze in Assembly | 21 bytes of fun | Commodore 64Using Arithmetic Instead of Logical Operators in Commodore BasicA Twisted Christmas II, 1989 | Commodore 64 Greetings CardGO RUN on Commodore 64Dumpster Dive Asus PC, should I keep it?Morse Code Keyer and Commodore 64 | Part OneLive Stream #8 - Youtube Retro RepairersFlooder | Commodore 64 GamePlasma Effect in BASIC on Commodore64How to hide lines in Commodore Basic | Structure of Basic code in Memory
Josip Retro Bits |

Commodore 64 | Crazy Screensaver in Assembly

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER