C64 Random

This commit is contained in:
Pecusx
2023-05-05 14:13:07 +02:00
parent 9b34ac0e43
commit b13b53602b
4 changed files with 18 additions and 67 deletions
+12 -1
View File
@@ -210,4 +210,15 @@ upstartEnd
eif
sta $d018
.end
.end
//
// Once this is done, random values appear in location $D41B (RANDOM)
//
.macro InitializeSIDrnd
LDA #$FF ; maximum frequency value
STA $D40E ; voice 3 frequency low byte
STA $D40F ; voice 3 frequency high byte
LDA #$80 ; noise waveform, gate bit off
STA $D412 ; voice 3 control register
.endm