Home » Personal collection » Acorn ADFS disks » Electron » PRES_E00_backup.ADF » BACKUP/ZP_DRIVER
BACKUP/ZP_DRIVER
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Acorn ADFS disks » Electron » PRES_E00_backup.ADF |
Filename: | BACKUP/ZP_DRIVER |
Read OK: | ✔ |
File size: | 05E7 bytes |
Load address: | FFFF0E00 |
Exec address: | FFFF8023 |
File contents
10a$="Printer Driver II" 20REM BY Julie Boswell 30REM (c) Electron User 40MODE 6 50ESC=27 60PRINT''''a$ 70INPUT'"Input pad character:"pad$ 80areg=&90:yreg=&91 90FOR pass=4 TO 6 STEP 2 100P%=&400:O%=&C00 110[OPT pass 120JMP print_char 130JMP printer_on 140JMP printer_off 150JMP exit 160JMP exit 170 180.on EQUB 0 190 200.print 210PHA 220LDA #1:JSR &FFEE 230PLA 240AND #&7F:JMP &FFEE 250 260.printer_off 270LDA #0:STA on 280LDA #3:JMP &FFEE 290 300.printer_on 310LDA on:BNE exit 320INC on 330LDA #2:JSR &FFEE 340LDA #ESC:JSR print 350LDA #ASC"@":JSR print 360.exit 370RTS 380 390.print_char 395STY yreg 430CMP #128:BPL highlight 435LDY highno:BNE high 436LDY yreg 440JMP &FFE3 450.highlight 460CMP #144:BCS exit 461LDY highno:BEQ change:CMP highchar:BNE high:.change STA highchar:INC highno:LDY yreg:JMP exit:.high 470STA areg 475TYA:CLC:ADC#127:LDY#0:STYhighno 480AND #7F:ASL A:ASL A:TAY 490LDA table+1,Y:EOR #&80:STA table+1,Y 500AND #&80:BNE here 510INY:INY 520.here 530LDA table,Y:AND #&80:BEQ no_esc 540LDA #27:JSR print 550.no_esc 560LDA table,Y:JSR print 570LDA table+1,Y:JSR print 580LDA areg:LDY yreg 585CMP#128:BPL highlight 590JMP &FFE3 600.highno EQUB0 605.highchar EQUB0 610.table 620] 630NEXT 640i=128 650PRINT'"Enter highlight ";i;"(Y/N)?"; 660IF INSTR("Nn",GET$) OSCLI"SAVE Drive2 C00 D00":END 670INPUT LINE'" On:"a$ 680INPUT LINE "Off:"b$ 690!O%=FNcode(a$)+&10000*FNcode(b$) 700O%=O%+4:i=i+1 710GOTO 650 720 730DEF FNcode(a$) 740C%=0 750I%=INSTR(a$,",") 760C%=C% OR EVAL(a$) 770IF I%=0 THEN =C% 780a$=MID$(a$,I%+1) 790IF C%<>27 THEN =C%+&100*EVAL(a$) 800C%=&80:GOTO 750
a$="Printer Driver II" � BY Julie Boswell � (c) Electron User (� 6 2 ESC=27 <�''''a$ F �'"Input pad character:"pad$ Pareg=&90:yreg=&91 Z� pass=4 � 6 � 2 dP%=&400:O%=&C00 n [OPT pass xJMP print_char �JMP printer_on �JMP printer_off �JMP exit � JMP exit � �.on EQUB 0 � � .print �PHA �LDA #1:JSR &FFEE �PLA �� #&7F:JMP &FFEE � .printer_off LDA #0:STA on LDA #3:JMP &FFEE " ,.printer_on 6LDA on:BNE exit @ INC on JLDA #2:JSR &FFEE TLDA #ESC:JSR print ^LDA #�"@":JSR print h .exit rRTS | �.print_char �STY yreg �CMP #128:BPL highlight �LDY highno:BNE high �LDY yreg � JMP &FFE3 �.highlight �CMP #144:BCS exit �jLDY highno:BEQ change:CMP highchar:BNE high:.change STA highchar:INC highno:LDY yreg:JMP exit:.high �STA areg �#TYA:CLC:ADC#127:LDY#0:STYhighno �� #7F:ASL A:ASL A:TAY �&LDA table+1,Y:� #&80:STA table+1,Y �� #&80:BNE here �INY:INY .here !LDA table,Y:� #&80:BEQ no_esc LDA #27:JSR print &.no_esc 0LDA table,Y:JSR print :LDA table+1,Y:JSR print DLDA areg:LDY yreg ICMP#128:BPL highlight N JMP &FFE3 X.highno EQUB0 ].highchar EQUB0 b .table l] v� � i=128 �$�'"Enter highlight ";i;"(Y/N)?"; �'� �"Nn",�) �"SAVE Drive2 C00 D00":� �� �'" On:"a$ �� � "Off:"b$ �"!O%=�code(a$)+&10000*�code(b$) �O%=O%+4:i=i+1 � � �tJB � �� �code(a$) �C%=0 �I%=�a$,",") �C%=C% � �(a$) � I%=0 � =C% a$=�a$,I%+1) � C%<>27 � =C%+&100*�(a$) C%=&80:� �dnB �
00000000 0d 00 0a 1a 61 24 3d 22 50 72 69 6e 74 65 72 20 |....a$="Printer | 00000010 44 72 69 76 65 72 20 49 49 22 0d 00 14 16 f4 20 |Driver II"..... | 00000020 42 59 20 4a 75 6c 69 65 20 42 6f 73 77 65 6c 6c |BY Julie Boswell| 00000030 0d 00 1e 17 f4 20 28 63 29 20 45 6c 65 63 74 72 |..... (c) Electr| 00000040 6f 6e 20 55 73 65 72 0d 00 28 07 eb 20 36 0d 00 |on User..(.. 6..| 00000050 32 0a 45 53 43 3d 32 37 0d 00 3c 0b f1 27 27 27 |2.ESC=27..<..'''| 00000060 27 61 24 0d 00 46 20 e8 27 22 49 6e 70 75 74 20 |'a$..F .'"Input | 00000070 70 61 64 20 63 68 61 72 61 63 74 65 72 3a 22 70 |pad character:"p| 00000080 61 64 24 0d 00 50 15 61 72 65 67 3d 26 39 30 3a |ad$..P.areg=&90:| 00000090 79 72 65 67 3d 26 39 31 0d 00 5a 14 e3 20 70 61 |yreg=&91..Z.. pa| 000000a0 73 73 3d 34 20 b8 20 36 20 88 20 32 0d 00 64 13 |ss=4 . 6 . 2..d.| 000000b0 50 25 3d 26 34 30 30 3a 4f 25 3d 26 43 30 30 0d |P%=&400:O%=&C00.| 000000c0 00 6e 0d 5b 4f 50 54 20 70 61 73 73 0d 00 78 12 |.n.[OPT pass..x.| 000000d0 4a 4d 50 20 70 72 69 6e 74 5f 63 68 61 72 0d 00 |JMP print_char..| 000000e0 82 12 4a 4d 50 20 70 72 69 6e 74 65 72 5f 6f 6e |..JMP printer_on| 000000f0 0d 00 8c 13 4a 4d 50 20 70 72 69 6e 74 65 72 5f |....JMP printer_| 00000100 6f 66 66 0d 00 96 0c 4a 4d 50 20 65 78 69 74 0d |off....JMP exit.| 00000110 00 a0 0d 4a 4d 50 20 65 78 69 74 20 0d 00 aa 05 |...JMP exit ....| 00000120 20 0d 00 b4 0e 2e 6f 6e 20 45 51 55 42 20 30 0d | .....on EQUB 0.| 00000130 00 be 05 20 0d 00 c8 0a 2e 70 72 69 6e 74 0d 00 |... .....print..| 00000140 d2 07 50 48 41 0d 00 dc 14 4c 44 41 20 23 31 3a |..PHA....LDA #1:| 00000150 4a 53 52 20 26 46 46 45 45 0d 00 e6 07 50 4c 41 |JSR &FFEE....PLA| 00000160 0d 00 f0 14 80 20 23 26 37 46 3a 4a 4d 50 20 26 |..... #&7F:JMP &| 00000170 46 46 45 45 0d 00 fa 05 20 0d 01 04 10 2e 70 72 |FFEE.... .....pr| 00000180 69 6e 74 65 72 5f 6f 66 66 0d 01 0e 11 4c 44 41 |inter_off....LDA| 00000190 20 23 30 3a 53 54 41 20 6f 6e 0d 01 18 14 4c 44 | #0:STA on....LD| 000001a0 41 20 23 33 3a 4a 4d 50 20 26 46 46 45 45 0d 01 |A #3:JMP &FFEE..| 000001b0 22 05 20 0d 01 2c 0f 2e 70 72 69 6e 74 65 72 5f |". ..,..printer_| 000001c0 6f 6e 0d 01 36 13 4c 44 41 20 6f 6e 3a 42 4e 45 |on..6.LDA on:BNE| 000001d0 20 65 78 69 74 0d 01 40 0a 49 4e 43 20 6f 6e 0d | exit..@.INC on.| 000001e0 01 4a 14 4c 44 41 20 23 32 3a 4a 53 52 20 26 46 |.J.LDA #2:JSR &F| 000001f0 46 45 45 0d 01 54 16 4c 44 41 20 23 45 53 43 3a |FEE..T.LDA #ESC:| 00000200 4a 53 52 20 70 72 69 6e 74 0d 01 5e 17 4c 44 41 |JSR print..^.LDA| 00000210 20 23 97 22 40 22 3a 4a 53 52 20 70 72 69 6e 74 | #."@":JSR print| 00000220 0d 01 68 09 2e 65 78 69 74 0d 01 72 07 52 54 53 |..h..exit..r.RTS| 00000230 0d 01 7c 05 20 0d 01 86 0f 2e 70 72 69 6e 74 5f |..|. .....print_| 00000240 63 68 61 72 0d 01 8b 0c 53 54 59 20 79 72 65 67 |char....STY yreg| 00000250 0d 01 ae 1a 43 4d 50 20 23 31 32 38 3a 42 50 4c |....CMP #128:BPL| 00000260 20 68 69 67 68 6c 69 67 68 74 0d 01 b3 19 4c 44 | highlight....LD| 00000270 59 20 68 69 67 68 6e 6f 3a 42 4e 45 20 68 69 67 |Y highno:BNE hig| 00000280 68 20 20 0d 01 b4 0e 4c 44 59 20 79 72 65 67 20 |h ....LDY yreg | 00000290 20 0d 01 b8 0d 4a 4d 50 20 26 46 46 45 33 0d 01 | ....JMP &FFE3..| 000002a0 c2 0e 2e 68 69 67 68 6c 69 67 68 74 0d 01 cc 15 |...highlight....| 000002b0 43 4d 50 20 23 31 34 34 3a 42 43 53 20 65 78 69 |CMP #144:BCS exi| 000002c0 74 0d 01 cd 6a 4c 44 59 20 68 69 67 68 6e 6f 3a |t...jLDY highno:| 000002d0 42 45 51 20 63 68 61 6e 67 65 3a 43 4d 50 20 68 |BEQ change:CMP h| 000002e0 69 67 68 63 68 61 72 3a 42 4e 45 20 68 69 67 68 |ighchar:BNE high| 000002f0 3a 2e 63 68 61 6e 67 65 20 53 54 41 20 68 69 67 |:.change STA hig| 00000300 68 63 68 61 72 3a 49 4e 43 20 68 69 67 68 6e 6f |hchar:INC highno| 00000310 3a 4c 44 59 20 79 72 65 67 3a 4a 4d 50 20 65 78 |:LDY yreg:JMP ex| 00000320 69 74 3a 2e 68 69 67 68 20 20 20 0d 01 d6 0c 53 |it:.high ....S| 00000330 54 41 20 61 72 65 67 0d 01 db 23 54 59 41 3a 43 |TA areg...#TYA:C| 00000340 4c 43 3a 41 44 43 23 31 32 37 3a 4c 44 59 23 30 |LC:ADC#127:LDY#0| 00000350 3a 53 54 59 68 69 67 68 6e 6f 0d 01 e0 19 80 20 |:STYhighno..... | 00000360 23 37 46 3a 41 53 4c 20 41 3a 41 53 4c 20 41 3a |#7F:ASL A:ASL A:| 00000370 54 41 59 0d 01 ea 26 4c 44 41 20 74 61 62 6c 65 |TAY...&LDA table| 00000380 2b 31 2c 59 3a 82 20 23 26 38 30 3a 53 54 41 20 |+1,Y:. #&80:STA | 00000390 74 61 62 6c 65 2b 31 2c 59 0d 01 f4 13 80 20 23 |table+1,Y..... #| 000003a0 26 38 30 3a 42 4e 45 20 68 65 72 65 0d 01 fe 0b |&80:BNE here....| 000003b0 49 4e 59 3a 49 4e 59 0d 02 08 09 2e 68 65 72 65 |INY:INY.....here| 000003c0 0d 02 12 21 4c 44 41 20 74 61 62 6c 65 2c 59 3a |...!LDA table,Y:| 000003d0 80 20 23 26 38 30 3a 42 45 51 20 6e 6f 5f 65 73 |. #&80:BEQ no_es| 000003e0 63 0d 02 1c 15 4c 44 41 20 23 32 37 3a 4a 53 52 |c....LDA #27:JSR| 000003f0 20 70 72 69 6e 74 0d 02 26 0b 2e 6e 6f 5f 65 73 | print..&..no_es| 00000400 63 0d 02 30 19 4c 44 41 20 74 61 62 6c 65 2c 59 |c..0.LDA table,Y| 00000410 3a 4a 53 52 20 70 72 69 6e 74 0d 02 3a 1d 4c 44 |:JSR print..:.LD| 00000420 41 20 74 61 62 6c 65 2b 31 2c 59 3a 4a 53 52 20 |A table+1,Y:JSR | 00000430 70 72 69 6e 74 20 20 0d 02 44 15 4c 44 41 20 61 |print ..D.LDA a| 00000440 72 65 67 3a 4c 44 59 20 79 72 65 67 0d 02 49 19 |reg:LDY yreg..I.| 00000450 43 4d 50 23 31 32 38 3a 42 50 4c 20 68 69 67 68 |CMP#128:BPL high| 00000460 6c 69 67 68 74 0d 02 4e 0d 4a 4d 50 20 26 46 46 |light..N.JMP &FF| 00000470 45 33 0d 02 58 11 2e 68 69 67 68 6e 6f 20 45 51 |E3..X..highno EQ| 00000480 55 42 30 0d 02 5d 13 2e 68 69 67 68 63 68 61 72 |UB0..]..highchar| 00000490 20 45 51 55 42 30 0d 02 62 0a 2e 74 61 62 6c 65 | EQUB0..b..table| 000004a0 0d 02 6c 05 5d 0d 02 76 05 ed 0d 02 80 09 69 3d |..l.]..v......i=| 000004b0 31 32 38 0d 02 8a 24 f1 27 22 45 6e 74 65 72 20 |128...$.'"Enter | 000004c0 68 69 67 68 6c 69 67 68 74 20 22 3b 69 3b 22 28 |highlight ";i;"(| 000004d0 59 2f 4e 29 3f 22 3b 0d 02 94 27 e7 20 a7 22 4e |Y/N)?";...'. ."N| 000004e0 6e 22 2c be 29 20 ff 22 53 41 56 45 20 44 72 69 |n",.) ."SAVE Dri| 000004f0 76 65 32 20 43 30 30 20 44 30 30 22 3a e0 0d 02 |ve2 C00 D00":...| 00000500 9e 10 e8 20 86 27 22 20 4f 6e 3a 22 61 24 0d 02 |... .'" On:"a$..| 00000510 a8 10 e8 20 86 20 22 4f 66 66 3a 22 62 24 0d 02 |... . "Off:"b$..| 00000520 b2 22 21 4f 25 3d a4 63 6f 64 65 28 61 24 29 2b |."!O%=.code(a$)+| 00000530 26 31 30 30 30 30 2a a4 63 6f 64 65 28 62 24 29 |&10000*.code(b$)| 00000540 0d 02 bc 11 4f 25 3d 4f 25 2b 34 3a 69 3d 69 2b |....O%=O%+4:i=i+| 00000550 31 0d 02 c6 0a e5 20 8d 74 4a 42 0d 02 d0 05 20 |1..... .tJB.... | 00000560 0d 02 da 0f dd 20 a4 63 6f 64 65 28 61 24 29 0d |..... .code(a$).| 00000570 02 e4 08 43 25 3d 30 0d 02 ee 0f 49 25 3d a7 61 |...C%=0....I%=.a| 00000580 24 2c 22 2c 22 29 0d 02 f8 11 43 25 3d 43 25 20 |$,",")....C%=C% | 00000590 84 20 a0 28 61 24 29 0d 03 02 10 e7 20 49 25 3d |. .(a$)..... I%=| 000005a0 30 20 8c 20 3d 43 25 0d 03 0c 10 61 24 3d c1 61 |0 . =C%....a$=.a| 000005b0 24 2c 49 25 2b 31 29 0d 03 16 1d e7 20 43 25 3c |$,I%+1)..... C%<| 000005c0 3e 32 37 20 8c 20 3d 43 25 2b 26 31 30 30 2a a0 |>27 . =C%+&100*.| 000005d0 28 61 24 29 0d 03 20 11 43 25 3d 26 38 30 3a e5 |(a$).. .C%=&80:.| 000005e0 20 8d 64 6e 42 0d ff | .dnB..| 000005e7