Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hardware:music_processor [2016/06/14 00:33]
ex_writer [MUZCPU Instruction Set]
hardware:music_processor [2016/06/14 09:01] (current)
ex_writer [Port Summary]
Line 29: Line 29:
 | 1 | QUIET | | Stops music and sets volume = 0 | | 1 | QUIET | | Stops music and sets volume = 0 |
 | 2 | OUTPUT | p,d | Port #(0–7), Data | | 2 | OUTPUT | p,d | Port #(0–7), Data |
-| 9 | OUTPUT | SNDBX,​D10,​D11,​D12,​D13,​D14,​D15,​D16,​D17 | Sound block transfer for all 8 output ports |+| 9 | OUTPUT | SNDBX,​D10,​D11,​D12,​D13,​D14,​D15,​D16,​D17 | Sound block transfer for all 8 output ports via SNDBX ($18) |
 | 3 | VOLUME | VOLAB, VOLC | Sets volume Tones A–C | | 3 | VOLUME | VOLAB, VOLC | Sets volume Tones A–C |
 | 1 | PUSHN | | Push # between 1-16 onto the stack | | 1 | PUSHN | | Push # between 1-16 onto the stack |
Line 40: Line 40:
 <WRAP round info>The port numbers (0–7) passed to OUTPUT assume that output port $10 (VOLMO) is the "​base"​ port (i.e., port $0). Port numbers are offset from that base. For example, to set Tone B's frequency to $82, one would call OUTPUT $02,$82. This would store the value $82 in output port $12 (TONEB).</​WRAP>​ <WRAP round info>The port numbers (0–7) passed to OUTPUT assume that output port $10 (VOLMO) is the "​base"​ port (i.e., port $0). Port numbers are offset from that base. For example, to set Tone B's frequency to $82, one would call OUTPUT $02,$82. This would store the value $82 in output port $12 (TONEB).</​WRAP>​
  
-<WRAP round help>​Testing:​\\ * PUSHN creates a loop index that DSJNZ decrements until zero (for looping music sections)?​\\ * What does CREL do?\\ * Why NOTE4 and NOTE5?</​WRAP>​+<WRAP round help>​Testing:​\\ * PUSHN creates a loop index that DSJNZ decrements until zero (for looping music sections)?​\\ * What does CREL do?\\ * Why NOTE4 and NOTE5? ​(Dogpatch uses NOTE4)</​WRAP>​
 ===== Master Oscillator ===== ===== Master Oscillator =====
  
Line 65: Line 65:
 The tone volumes are controlled by output ports $15 (VOLC) and $16 (VOLAB). The lower 4 bits of port $16 set Tone A volume, the upper 4 bits set Tone B volume. The lower 4 bits of port $15 set Tone C volume. Noise can be mixed with the tones by setting bit 5 of port $15 to 1. In this case, the noise volume is given by the upper 4 bits of port $17 (VOLN). In all cases, a volume of 0 is silence and a volume of all 1's is loudest. The tone volumes are controlled by output ports $15 (VOLC) and $16 (VOLAB). The lower 4 bits of port $16 set Tone A volume, the upper 4 bits set Tone B volume. The lower 4 bits of port $15 set Tone C volume. Noise can be mixed with the tones by setting bit 5 of port $15 to 1. In this case, the noise volume is given by the upper 4 bits of port $17 (VOLN). In all cases, a volume of 0 is silence and a volume of all 1's is loudest.
  
-=== Port Summary ===+=== Music Processor ​Port Summary ===
  
 <​code>​ <​code>​