Changes

Jump to: navigation, search

PlayCity

1,469 bytes added, 14:20, 9 July 2014
the frequency by reprograming the CTC Channel 0.
===YMZ294 Registers===
They are exactly the same than the [[PSG]], only remember there is not PSG I/O registers ($0E-$0F9) in the YMZ.===Coding Examples=======YMZ Initialization===='''YMZ_SELECT''', select a YMZ register. Use the port '''$F984''' for the right channels and port '''$F988''' for the left channels. '''YMZ_WRITE''', write a byte in the selected register. Use the port '''$F884''' for the right channels and port '''$F888''' for the left channels.<pre>; Initialization of the YMZ registersLD A,$D.loop_init_ymzLD BC,YMZ_SELECTOUT (C),A ; RegisterLD BC,YMZ_WRITECP 7JR NZ,.send_zeroLD A,$3F ; Noise and Tone disabledOUT (C),A ; Write in YMZ R7LD A,6JR .loop_init_ymz.send_zeroOUT (C),0 ; Write 0 in the selected YMZ registerDEC AJP P,.loop_init_ymz</pre>===CTC/YMZ Useful Values==={| class="wikitable"|-! 4/N !! CTC Val !! CTC OUT (MHz) !! YMZ Div (MHz) !! Computer|-| 1 || $01 || 2,00 || 1,00 || CPC|-| 2 || || 2,67 || 1,33 |||-| 3 ||$02 || 3,00 || 1,50 |||-| 4 || || 3,20 || 1,60 |||-| 5 || $03 || 3,33 || 1,67 |||-| 6 || || 3,43 || 1,71 |||-| 7 || $04 || 3,50 || 1,75 || ZX|-| 8 || || 3,56 || 1,78 || MSX|-| 9 || $05 || 3,60 || 1,80 |||-| 10 || || 3,64 || 1,82 |||-| 11 || $06 || 3,67 || 1,83 |||-| 12 || || 3,69 || 1,85 |||-| 13 || $07 || 3,71 || 1,86 |||-| 14 || || 3,73 || 1,87 |||-| 15 || $08 || 3,75 || 1,88 |||-| 16 || || 3,76 || 1,88 |||-| ... || ... || ... || ... |||-| 256 || $00 || 3,98 || 1,99 |||-| UNSET || || 4,00 || 2,00 || ST|}
123
edits