Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Sound1On: pha
  2. lda #%00010001 // Sawtooth, gate open
  3. sta $d404 // Voice 1
  4. lda #Sound1Duration
  5. sta Sound1Counter
  6. pla
  7. rts
  8.  
  9. Sound1Off: pha
  10. lda #%00010000 // Sawtooth, gate close
  11. sta $d404 // Voice 1
  12. pla
  13. rts
  14.  
  15. Sound2On: pha
  16. lda #%00010001 // Sawtooth, gate open
  17. sta $d40b // Voice 2
  18. lda #Sound2Duration
  19. sta Sound2Counter
  20. pla
  21. rts
  22.  
  23. Sound2Off: pha
  24. lda #%00010000 // Sawtooth, gate close
  25. sta $d40b // Voice 2
  26. pla
  27. rts
  28.  
  29. Sound3On: pha
  30. lda #%00010001 // Sawtooth, gate open
  31. sta $d412 // Voice 3
  32. lda #Sound3Duration
  33. sta Sound3Counter
  34. pla
  35. rts
  36.  
  37. Sound3Off: pha
  38. lda #%00010000 // Sawtooth, gate close
  39. sta $d412 // Voice 3
  40. pla
  41. rts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement