02 ; COPY130 04 ; BY ERNIE NEGUS 06 ; (c) 1985, ANTIC PUBLISHING 10 *= $2600 ;ROOM FOR DOS XL 20 JMP START 30 DBUFHI = $0305 ;O.S. EQUATES 40 DBUFLO = $0304 ;FOR OS I/O AND 50 DAUX2 = $030B ;DIRECT DISK I/O 60 DAUX1 = $030A 70 DCOMND = $0302 80 DUNIT = $0301 90 ICCOM = $0342 0100 ICBADR = $0344 0110 ICBLEN = $0348 0120 ICAUX1 = $034A 0130 ICAUX2 = $034B 0140 CARTR = $A000 ;MESSAGE AREA 0150 DES .BYTE "Destination #" 0160 FMT .BYTE "Format Destination ?" 0170 VER .BYTE "Verify Writes ?" 0180 STE .BYTE "Continue on Errors ?" 0190 RDG .BYTE $9B,"Reading..." 0200 WRT .BYTE $9B,"Writing..." 0210 IND .BYTE $9B,"Insert DESTINATION disk-Press Return" 0220 INS .BYTE "Insert SOURCE in Drive 1-Type Return" 0230 ANC .BYTE $9B,$FD,"Another copy ?" 0240 FRM .BYTE $9B,"Formatting..." 0250 REM .BYTE "Remove Cartridges First!",$9B 0260 O130 .BYTE "Program only runs on a 130 XE!!",$9B 0270 TIT1 .BYTE $1D," SECTOR COPIER 130 XE ",$1D,$9B 0280 TIT2 .BYTE " By Ernie Negus",$1D,$1D,$1D,$9B 0290 KEY .BYTE "K:" 0300 SCR .BYTE "S:" 0310 SECNT .BYTE 0 ;VARIABLES 0320 DEST .BYTE 0 ;USED BY PROGRAM 0330 FRMT .BYTE 0 0340 SOUR .BYTE 0 0350 DCOM .BYTE 0 0360 DTEM .BYTE 0 0370 SAVA .BYTE 0 0380 VERI .BYTE 0 0390 SPEC .BYTE 0 0400 SAVSPE .BYTE 0 0410 CERR .BYTE 0 0420 DRIVE .BYTE 0 0430 BPUT LDA #$26 ;OUTPUT TEXT 0440 BPUU STA ICBADR+1 ;SUBROUTINE 0450 LDA #0 0460 STA ICBLEN+1 0470 STX ICBLEN 0480 STY ICBADR 0490 LDX #0 0500 LDA #$0B 0510 STA ICCOM 0520 JSR $E456 0530 RTS 0540 BGET LDX #$10 ;INPUT BYTE FROM 0550 LDA #7 ;KEYBOARD SUB. 0560 STA ICCOM,X 0570 LDA #0 0580 STA ICBLEN,X 0590 STA ICBLEN+1,X 0600 JSR $E456 0610 STA $0600 0620 CMP #$1B ;ESCAPE RERUNS 0630 BNE RET2 ;THE PROGRAM. 0640 PLA 0650 PLA 0660 JMP START 0670 RET2 RTS 0680 OPEN LDX #16 ;OPEN CHANNELS 0690 LDA #3 ;1 FOR KEYBOARD 0700 STA ICCOM,X ;6 FOR SCREEN. 0710 LDA # KEY 0740 STA ICBADR+1,X 0750 LDA #4 0760 STA ICAUX1,X 0770 JSR $E456 0780 LDX #$60 0790 LDA #3 0800 STA ICCOM,X 0810 LDA # SCR 0840 STA ICBADR+1,X 0850 LDA #12 0860 STA ICAUX1,X 0870 LDA #0 0880 STA ICAUX2,X 0890 JSR $E456 0900 RTS 0910 CLOSE LDX #$10 ;INSURES THOSE 0920 LDA #12 ;FILES CLOSED. 0930 STA ICCOM,X 0940 JSR $E456 0950 LDX #$60 0960 LDA #12 0970 STA ICCOM,X 0980 JSR $E456 0990 RTS 1000 START LDA CARTR ;THIS IS A 1010 INC CARTR ;CARTRIDGE TEST 1020 CMP CARTR 1030 BNE NOCARTS 1040 LDX #25 1050 LDY # TIT1 1570 JSR BPUU ;PRINT TITLE 1580 LDA #0 1590 STA SPEC 1600 LDA #148 1610 STA 710 1620 STA 712 1630 LDA #12 1640 STA 709 1650 LDX #13 1660 LDY #