mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
C64 Random
This commit is contained in:
+12
-1
@@ -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
|
||||
Reference in New Issue
Block a user