Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sound1On: pha
- lda #%00010001 // Sawtooth, gate open
- sta $d404 // Voice 1
- lda #Sound1Duration
- sta Sound1Counter
- pla
- rts
- Sound1Off: pha
- lda #%00010000 // Sawtooth, gate close
- sta $d404 // Voice 1
- pla
- rts
- Sound2On: pha
- lda #%00010001 // Sawtooth, gate open
- sta $d40b // Voice 2
- lda #Sound2Duration
- sta Sound2Counter
- pla
- rts
- Sound2Off: pha
- lda #%00010000 // Sawtooth, gate close
- sta $d40b // Voice 2
- pla
- rts
- Sound3On: pha
- lda #%00010001 // Sawtooth, gate open
- sta $d412 // Voice 3
- lda #Sound3Duration
- sta Sound3Counter
- pla
- rts
- Sound3Off: pha
- lda #%00010000 // Sawtooth, gate close
- sta $d412 // Voice 3
- pla
- rts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement