Download Telefunken RT200
Transcript
endp ;--------------------------------------------------------------------------; tune down: manually increment with optional auto-repeat, search downloop: dostep: proc tunedown public doauto_dn mov call jc auxdata,#15 getautoscan doauto_dn ; surely not a set program any more! ; shall we search ? ; yes--> call call call mov call jc xrl jnz mov jz dec mov sjmp setb call call call sjmp freq_down setfreq dispfreq firstdel,#13 readkey terminate a,#KEY_DOWN terminate a,firstdel dostep a firstdel,a downloop MUTE freq_down setfreq dispfreq downloop ; one manual step down terminate: ret doauto_dn: call jnc call jc call jc cjne sjmp cjne sjmp setb call call call mov call jb sjmp nodown: nokey: ; leave about 13 steps out until repeat ; still down key pressed ? ; still in delay phase ? ; yes--> ; mute in repeat mode ; one repeat step getautoscan ; auto scan terminated ? terminate ; yes-->bail out chkonoff ; tuner still on? terminate ; no-->bail out readkey ; key pressed ? nokey a,#KEY_DOWN,nodown ; further key inputs ignored nokey a,#KEY_UP,terminate ; key up changes search direction doauto_up MUTE ; search loop: silence freq_down ; one step up dispfreq setfreq a,#delval(100) ; wait a moment for tuner to sync delay STATION_DET,terminate ; stop if found doauto_dn ; otherwise go on endp ;--------------------------------------------------------------------------; increment frequency proc freq_up jb FM,incfm ; differentiate AM/FM mov add da mov jnc a,am_prog a,#9 a am_prog,a amdone ; increment lower part