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
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










