Home » Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF » TAPE2/B/BDriver3 » Compare

Compare TAPE2/B/BDriver3 with BACKUP/ZP_DRIVER

File: Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF » TAPE2/B/BDriver3
Compared with: Personal collection » Acorn ADFS disks » Electron » PRES_E00_backup.ADF » BACKUP/ZP_DRIVER
Similarity: 52% of bytes duplicated

71 of 88 lines (82.6%) are identical in the two listings. Duplicated Different

Line numbers are ignored when comparing lines, so that renumbered programs still match.

TAPE2/B/BDriver3 BACKUP/ZP_DRIVER
10 REM View Printer Driver 3 10a$="Printer Driver II"
20 20REM BY Julie Boswell
30 REM For printing highlighted text, and the full range of ASCII characters.
40a$="View Printer Driver 3"
50REM By Julie Boswell
60REM (c) Electron User 30REM (c) Electron User
70MODE 6 40MODE 6
80ESC=27 50ESC=27
90PRINT''''a$ 60PRINT''''a$
70INPUT'"Input pad character:"pad$
100areg=&90:yreg=&91 80areg=&90:yreg=&91
110FOR pass=4 TO 6 STEP 2 90FOR pass=4 TO 6 STEP 2
120P%=&400:O%=&C00 100P%=&400:O%=&C00
130[OPT pass 110[OPT pass
140JMP print_char 120JMP print_char
150JMP printer_on 130JMP printer_on
160JMP printer_off 140JMP printer_off
170JMP exit 150JMP exit
180JMP exit 160JMP exit
190 170
200.on EQUB 0 180.on EQUB 0
210 190
220.print 200.print
230PHA 210PHA
240LDA #1:JSR &FFEE 220LDA #1:JSR &FFEE
250PLA 230PLA
260AND #&7F:JMP &FFEE 240AND #&7F:JMP &FFEE
270 250
280.printer_off 260.printer_off
290LDA #0:STA on 270LDA #0:STA on
300LDA #3:JMP &FFEE 280LDA #3:JMP &FFEE
310 290
320.printer_on 300.printer_on
330LDA on:BNE exit 310LDA on:BNE exit
340INC on 320INC on
350LDA #2:JSR &FFEE 330LDA #2:JSR &FFEE
360LDA #ESC:JSR print 340LDA #ESC:JSR print
370LDA #ASC"@":JSR print 350LDA #ASC"@":JSR print
380.exit 360.exit
390RTS 370RTS
400 380
410.print_char 390.print_char
420 STY yreg 395STY yreg
430CMP #128:BPL highlight 430CMP #128:BPL highlight
440 LDY highno:BNE high 435LDY highno:BNE high
450 LDY yreg 436LDY yreg
460JMP &FFE3 440JMP &FFE3
470.highlight 450.highlight
480CMP #144:BCS exit 460CMP #144:BCS exit
490 LDY highno:BEQ change:CMP highchar:BNE high:.change STA highchar:INC highno:LDY yreg:JMP exit:.high 461LDY highno:BEQ change:CMP highchar:BNE high:.change STA highchar:INC highno:LDY yreg:JMP exit:.high
500STA areg 470STA areg
510 TYA:CLC:ADC#124:LDY#0:STYhighno 475TYA:CLC:ADC#127:LDY#0:STYhighno
520 CMP#0:BPLascii 480AND #7F:ASL A:ASL A:TAY
530AND #&7F:ASL A:ASL A:TAY
540LDA table+1,Y:EOR #&80:STA table+1,Y 490LDA table+1,Y:EOR #&80:STA table+1,Y
550AND #&80:BNE here 500AND #&80:BNE here
560INY:INY 510INY:INY
570.here 520.here
580LDA table,Y:AND #&80:BEQ no_esc 530LDA table,Y:AND #&80:BEQ no_esc
590LDA #27:JSR print 540LDA #27:JSR print
600.no_esc 550.no_esc
610LDA table,Y:JSR print 560LDA table,Y:JSR print
620LDA table+1,Y:JSR print 570LDA table+1,Y:JSR print
630LDA areg:LDY yreg 580LDA areg:LDY yreg
640 CMP#128:BPL highlight 585CMP#128:BPL highlight
650 JMP &FFE3 590JMP &FFE3
660 .ascii LDY yreg:CMP#126:BMIlowcode:BEQhighcode:LDA areg:CLC:ADC#160:JMP&FFE3:.lowcode LDAareg:SEC:SBC#32:JMP&FFE3:.highcode LDA areg:CLC:ADC#96:JMP&FFE3
670 .highno EQUB0 600.highno EQUB0
680 .highchar EQUB0 605.highchar EQUB0
690.table 610.table
700] 620]
710NEXT 630NEXT
720i=128 640i=128
730PRINT'"Enter highlight ";i;"(Y/N)?"; 650PRINT'"Enter highlight ";i;"(Y/N)?";
740IF INSTR("Nn",GET$) OSCLI"SAVE Driver3 C00 D00":END 660IF INSTR("Nn",GET$) OSCLI"SAVE Drive2 C00 D00":END
750INPUT LINE'" On:"a$ 670INPUT LINE'" On:"a$
760INPUT LINE "Off:"b$ 680INPUT LINE "Off:"b$
770!O%=FNcode(a$)+&10000*FNcode(b$) 690!O%=FNcode(a$)+&10000*FNcode(b$)
780O%=O%+4:i=i+1 700O%=O%+4:i=i+1
790GOTO 730 710GOTO 650
800 720
810DEF FNcode(a$) 730DEF FNcode(a$)
820C%=0 740C%=0
830I%=INSTR(a$,",") 750I%=INSTR(a$,",")
840C%=C% OR EVAL(a$) 760C%=C% OR EVAL(a$)
850IF I%=0 THEN =C% 770IF I%=0 THEN =C%
860a$=MID$(a$,I%+1) 780a$=MID$(a$,I%+1)
870IF C%<>27 THEN =C%+&100*EVAL(a$) 790IF C%<>27 THEN =C%+&100*EVAL(a$)
880C%=&80:GOTO 830 800C%=&80:GOTO 750