| 1 |
;ACME 0.95 |
| 2 |
|
| 3 |
!ifdef lib_cbm_c64_sid_a !eof |
| 4 |
lib_cbm_c64_sid_a = 1 |
| 5 |
|
| 6 |
!address { |
| 7 |
; write-only registers: |
| 8 |
; voice 1: |
| 9 |
sid_v1_freq_lo = $d400 |
| 10 |
sid_v1_freq_hi = $d401 |
| 11 |
sid_v1_width_lo = $d402 |
| 12 |
sid_v1_width_hi = $d403 |
| 13 |
sid_v1_control = $d404 ; see below for bits |
| 14 |
sid_v1_attack_decay = $d405 ; hi-nibble: attack length, low-nibble: decay length |
| 15 |
sid_v1_sustain_release = $d406 ; hi-nibble: sustain volumne, low-nibble: release length |
| 16 |
; voice 2: |
| 17 |
sid_v2_freq_lo = $d407 |
| 18 |
sid_v2_freq_hi = $d408 |
| 19 |
sid_v2_width_lo = $d409 |
| 20 |
sid_v2_width_hi = $d40a |
| 21 |
sid_v2_control = $d40b ; see below for bits |
| 22 |
sid_v2_attack_decay = $d40c ; hi-nibble: attack length, low-nibble: decay length |
| 23 |
sid_v2_sustain_release = $d40d ; hi-nibble: sustain volumne, low-nibble: release length |
| 24 |
; voice 3: |
| 25 |
sid_v3_freq_lo = $d40e |
| 26 |
sid_v3_freq_hi = $d40f |
| 27 |
sid_v3_width_lo = $d410 |
| 28 |
sid_v3_width_hi = $d411 |
| 29 |
sid_v3_control = $d412 ; see below for bits |
| 30 |
sid_v3_attack_decay = $d413 ; hi-nibble: attack length, low-nibble: decay length |
| 31 |
sid_v3_sustain_release = $d414 ; hi-nibble: sustain volumne, low-nibble: release length |
| 32 |
} |
| 33 |
; voice control bits: |
| 34 |
sid_VOICECONTROL_NOISE = %#....... |
| 35 |
sid_VOICECONTROL_RECTANGLE = %.#...... |
| 36 |
sid_VOICECONTROL_SAWTOOTH = %..#..... |
| 37 |
sid_VOICECONTROL_TRIANGLE = %...#.... |
| 38 |
sid_VOICECONTROL_DISABLE_RESET = %....#... ; 1 = disable voice, reset noise generator |
| 39 |
sid_VOICECONTROL_RINGMODULATION = %.....#.. |
| 40 |
sid_VOICECONTROL_SYNC = %......#. |
| 41 |
sid_VOICECONTROL_ON = %.......# ; 0 = release, 1 = attack/sustain/decay |
| 42 |
!address { |
| 43 |
; registers shared by all voices: |
| 44 |
sid_filter_cutoff_lo = $d415 ; only bits 0/1/2! |
| 45 |
sid_filter_cutoff_hi = $d416 |
| 46 |
sid_filter_control = $d417 ; hi-nibble: resonance, lo-nibble: filter ext/v3/v2/v1 |
| 47 |
sid_filter_volume = $d418 ; hi-nibble: filter mode (disable v3, high, band, low), lo-nibble: volume |
| 48 |
; read-only registers: |
| 49 |
sid_potx = $d419 |
| 50 |
sid_poty = $d41a |
| 51 |
sid_v3_waveform_output = $d41b |
| 52 |
sid_v3_adsr_output = $d41c |
| 53 |
} |
| 54 |
; Do not use the shadow copies of these registers at $d5xx, $d6xx or $d7xx: |
| 55 |
; on a C128 they do not exist! |