Home » CEEFAX disks » telesoftware5.adl » 22-01-88/TPRINT » Compare
Compare 22-01-88/TPRINT with PTBUFCD
| File: | CEEFAX disks » telesoftware5.adl » 22-01-88/TPRINT |
| Compared with: | CEEFAX disks » telesoftware2.adl » PTBUFCD |
| Similarity: | 51% of bytes duplicated |
23 of 54 lines (43.8%) are identical in the two listings. Duplicated Different
Line numbers are ignored when comparing lines, so that renumbered programs still match.
| 22-01-88/TPRINT | PTBUFCD |
|---|---|
| 10REM"�� | 10REM"�� |
| 20REM"��� TELEPRINTER LISTING 1 | 20REM"��� I/O Printer Buffer |
| 30REM"��� �Mike Rawlings | 30REM"��� �Mike Rawlings |
| 40REM"��� 1-2-1987 | 40REM"��� 31-1-1987 |
| 50REM"�� | 50REM"�� |
| 60REM"�� | 60REM"�� |
| 70REM"��� For BBCB / B+ / MASTER | 70REM"��� For BBCB / B+ / Electron |
| 80REM"��� With DFS or ADFS | 80REM"��� MASTER / COMPACT |
| 90REM"��� With TFS or ATS | 90REM"�� �SECOND / CO PROCESSOR |
| 100REM"���With SECOND PROCESSOR (ATS) | |
| 110REM"�� | 100REM"�� |
| 120REM"�� | 110REM"�� |
| 130REM"��� *TYPE Tp/Inf For | 120REM"��� *TYPE Buf/Inf For |
| 140REM"��� Full details | 130REM"��� Full details |
| 150REM"�� | 140REM"�� |
| 160: | 150: |
| 170REM"���� Zero Page Addresses � | 160REM"���� Zero Page Addresses � |
| 180ins=&88:rem=&8A:ext=&8C:f=&8E | 170ins=&78:rem=&7A:ext=&7C:f=&7E |
| 190: | 180: |
| 200REM"����Start / End Addresses � | 190REM"����Start / End Addresses � |
| 210start=PAGE+&1900:end=&6600 | 200start=&1F00:end=&7A00 |
| 220: | 210: |
| 230FORp=0TO2STEP2 | 220DIMosc 40,sve 9:VDU15:FOR p=0 TO 3 STEP 3 |
| 240: | 230: |
| 250REM"����Code Address � | 240REM"����Code Address � |
| 260P%=&6600 | 250P%=&7A00 |
| 270: | 260: |
| 280[OPTp:.set LDY#0:STYf:SEI:.L1 LDA&22A,Y:STAins1,Y:LDAinit+6,Y:STA&22A,Y | 270[OPTp:.set LDY#0:STYf:SEI:.L1 LDA&22A,Y:STAins1,Y:LDAinit+6,Y:STA&22A,Y |
| 290INY:CPY#6:BNEL1:CLI:RTS:.ins2 LDYf:BEQold1:CPX#3:BNEold1:CPY#3:BNEB1:SEC:RTS:.B1 LDY#0:STA(ins),Y:INY:STYf:PHA:LDYins:LDAins+1:JSRS:STAins+1:STYins:PLA:INCext:BNEB2:INCext+1 | 280INY:CPY#6:BNEL1:CLI:RTS:.ins2 LDYf:BEQold1:CPX#3:BNEold1:CPY#3:BNEB1:SEC:RTS:.B1 LDY#0:STA(ins),Y:INY:STYf:PHA:LDYins:LDAins+1:JSRS:STAins+1:STYins:PLA:INCext:BNEB2:INCext+1 |
| 300LDY#((end-start)DIV 256):CPYext+1:BNEB2:STXf:.B2 CLC:RTS:.old1 JMP(ins1):.rem2 PHP:LDYf:BEQold2:CPX#3:BNEold2:CPY#2:BNEB3:PLP:SEC:RTS:.B3 LDY#0:LDA(rem),Y:PLP:BVSB2:INY:STYf:PHA:LDYrem:LDArem+1:JSRS:STArem+1:STYrem:PLA:DECext:BNEB4 | 290LDY#((end-start)DIV 256):CPYext+1:BNEB2:STXf:.B2 CLC:RTS:.old1 JMP(ins1):.rem2 PHP:LDYf:BEQold2:CPX#3:BNEold2:CPY#2:BNEB3:PLP:SEC:RTS:.B3 LDY#0:LDA(rem),Y:PLP:BVSB2:INY:STYf:PHA:LDYrem:LDArem+1:JSRS:STArem+1:STYrem:PLA:DECext:BNEB4 |
| 310LDYext+1:BNEB5:INCf:BPLB5:.B4 LDYext:INY:BNEB5:DECext+1:.B5 TAY:CLC:RTS:.old2 PLP:JMP(rem1):.cnt2 PHP:CPX#127:BEQflsh:LDA#0:CPX#126:BNEB6:STAf:PLP:RTS:.B6 CMPf:BEQold3:CPX#3:BNEold3:PLP:PHP:BVCB7 | 300LDYext+1:BNEB5:INCf:BPLB5:.B4 LDYext:INY:BNEB5:DECext+1:.B5 TAY:CLC:RTS:.old2 PLP:JMP(rem1):.cnt2 PHP:CPX#127:BEQflsh:LDA#0:CPX#126:BNEB6:STAf:PLP:RTS:.B6 CMPf:BEQold3:CPX#3:BNEold3:PLP:PHP:BVCB7 |
| 320PLP | 310: |
| 330RTS | 320\"����PLP � |
| 330\"����RTS � | |
| 340: | |
| 340.flsh LDA#2:STAf:TYA:PHA:LDY#0:SEI:.L2 LDAinit,Y:STAins,Y:INY:CPY#6:BNEL2:CLI:PLA:TAY:PLP:RTS:.B7 PLP:PHP:BCCB8:SBCext:TAX:LDA#((end-start)DIV256):SBCext+1:TAY:PLP:RTS:.B8 LDXext:LDYext+1:PLP:RTS:.old3 PLP:JMP(cnt1):.S INY:BNEB9:CLC | 350.flsh LDA#2:STAf:TYA:PHA:LDY#0:SEI:.L2 LDAinit,Y:STAins,Y:INY:CPY#6:BNEL2:CLI:PLA:TAY:PLP:RTS:.B7 PLP:PHP:BCCB8:SBCext:TAX:LDA#((end-start)DIV256):SBCext+1:TAY:PLP:RTS:.B8 LDXext:LDYext+1:PLP:RTS:.old3 PLP:JMP(cnt1):.S INY:BNEB9:CLC |
| 350ADC#1:CMP#(end DIV256):BNEB9:LDA#(start DIV256):.B9 RTS:.init:] | 360ADC#1:CMP#(end DIV256):BNEB9:LDA#(start DIV256):.B9 RTS:.init:] |
| 360: | 370: |
| 370!P%=start:!(P%+2)=start:!(P%+6)=ins2:!(P%+8)=rem2:!(P%+10)=cnt2:ins1=P%+12:rem1=P%+14:cnt1=P%+16:NEXT | 380!P%=start:!(P%+2)=start:!(P%+6)=ins2:!(P%+8)=rem2:!(P%+10)=cnt2:ins1=P%+12:rem1=P%+14:cnt1=P%+16:NEXT:*FX21,3 |
| 380CALLset:*FX128,128 | 390VDU2,1,8,1,8,3:IFADVAL-4=63 VDU7:PRINT''"PLEASE TURN PRINTER OFF":REPEAT:TIME=0:REPEATUNTILTIME>50:VDU2,1,8,1,8,3:UNTILADVAL-4<>63 |
| 390: | 400*FX21,3 |
| 400REM"����Printer codes � | 410CALLset:IFADVAL-4<>63 PROCer |
| 410pound=35:half=124:hash=38:quarter=123:threequart=60:divide=62 | 420*FX128,128 |
| 420: | 430IFADVAL-4<>end-start PROCer |
| 430*FX18 | 440VDU2,1,65,1,65,3:IFADVAL-4<>end-start-1 PROCer |
| 440ENVELOPE1,7,1,-1,1,1,1,1,126,-10,-5,-2,126,126:*FX212,0 | 450A%=145:X%=3:IFUSR(&FFF4)<>&B0410391 PROCer |
| 450FORp=0TO2STEP2:P%=&6700 | 460IFADVAL-4<>end-start PROCer |
| 460[OPTp:LDX#0:STX&84:LDY#&88:STY&80:LDY#&74:STY&81:LDY#&48:STY&82:LDY#&78:STY&83:.loop LDA(&80,X):CMP#158:BEQtrue:CMP#159:BEQfalse:CMP#145:BPLskip1:CMP#129:BMIspace:JMPfalse:.true LDY#1:STY&84:JMPspace:.false LDY#0:STY&84:JMPspace | 470A%=145:X%=3:IFUSR(&FFF4)<>&B1020391 PROCer |
| 470.skip1 CMP#152:BEQfalse:CMP#155:BMItrue:CMP#156:BMIfalse:.skip2 LDY&84:CPY#1:BEQspace:CMP#255:BEQspace:CMP#160:BMIspace:CMP#163:BEQascii163:CMP#220:BEQascii220:CMP#223:BEQascii223:CMP#251:BEQascii251:CMP#253:BEQascii253:CMP#254 | 480IFADVAL-4<>end-start PROCer |
| 480BEQascii254:AND#&7F:.end STA(&82,X):INC&80:BNEskip3:INC&81:.skip3 INC&82:BNEskip4:INC&83:.skip4 LDY&81:CPY#&78:BMIloop:LDY&80:CPY#&40:BMIloop:RTS:.space LDA#32:JMPend:.ascii163 LDA#pound:JMPend:.ascii220 LDA#half:JMPend | 490*FX128,129 |
| 490.ascii223 LDA#hash:JMPend:.ascii251 LDA#quarter:JMPend:.ascii253 LDA#threequart:JMPend:.ascii254 LDA#divide:JMPend:]:NEXT | 500IFADVAL-4<>63 PROCer |
| 500*TV255 | 510ONERROR REPORT:GOTO540 |
| 510CHAIN"TPRINT2" | 520$sve=" FFFF"+STRING$(4-LEN(STR$~(set)),CHR$(48))+STR$~(set):$osc="SAVE PRNTBUF "+STR$~(set)+" "+STR$~(P%+18)+STRING$(2,$sve):PRINT''$osc'':X%=osc MOD256:Y%=osc DIV256:CALL&FFF7:GOTO540 |
| 530DEFPROCer:VDU7:PRINT''"THERE IS AN ERROR IN"'"THE ASSEMBLY LISTING" | |
| 540p=PAGE:REPEATp=p+1:UNTIL?p=13:?p=0:END |
.