>DFS-58  Double cat system  By James Roberts (&>=&8000"6502 Machines only!": 2,?&284=&FF:$&404=26*4-1,0):@%=&90A:Z%=0 <ݤlo(A%)=A%&FF Fݤhi(A%)=(A%&FF00)&100 P$ݤhex(X%,Y%)="0000000"+~X%,Y%) ZrFORP%=&900TO&AFCSTEP4:!P%=0:NEXT:!&A04=&20030000:?79=3:!80=&900:!84=&4B03:!88=&22:A%=&7F:X%=79:Y%=0:CALL&FFF1 d) (P)(S)" O.err1%EQUW&B400:EQUS"Dir not empty":.err2%EQUW&FF00:EQUS"Bad SWAP disc":BRK .cde2%JSR rdsc%-6 1.cde3%STA&70:STX&71:STY&72:PHP:PLA:STA&73:RTS c.mkct%LDX#0:LDA cat0%-&F0,Y:STA&908,X:LDA cat1%-&F0,Y:STA&A08,X:INX:INY:BNE mkct%+2:STX&A05:RTS N.swsc%LDY#&21:JSR rdsc%-2:INX:#2:JSR rdsc%:JSR swsc%+15:DEX:#2:BPL wtsc% eLDY#&22:LDX#9:.wtsc%PHA:LDA#&4B:BNE rdsc%+3:LDA#0:LDY#&22:LDX#9:.rdsc%PHA:LDA#&53:STA osbk%+6:PLA \.oswd%STA osbk%+8:STX osbk%+2:STY osbk%+9:LDA#&7F:LDX#lo(osbk%):LDY#hi(osbk%):JSR&FFF1 LDY osbk%+9:LDX osbk%+2:LDA osbk%+10:EQUW&4D0:LDA osbk%+8:RTS:EQUW&C700:EQUS"Disc error":BRK:.osbk%BRK:EQUD&FFFF0900:EQUD3:BRK {.cat1%EQUW&900:EQUW code%:EQUD&4CC0200:EQUD0:EQUD&2000000:.cat0%EQUD&50415753:EQUD&A4202020:EQUD&212121A1:EQUD&A1212121 4]::"Ended @:";~P%:&D00