2016-05-01 21:13:54 +00:00
|
|
|
|
PR#3
|
2017-03-29 15:48:15 +00:00
|
|
|
|
PREFIX /A2OSX.BUILD
|
2016-05-01 21:13:54 +00:00
|
|
|
|
NEW
|
|
|
|
|
INC 1
|
|
|
|
|
AUTO 6
|
|
|
|
|
.LIST OFF
|
|
|
|
|
.OP 65C02
|
|
|
|
|
.OR $2000
|
2017-03-29 15:48:15 +00:00
|
|
|
|
.TF /A2OSX.BUILD/BIN/CP
|
2016-05-01 21:13:54 +00:00
|
|
|
|
*--------------------------------------
|
2017-03-29 15:48:15 +00:00
|
|
|
|
.INB /A2OSX.BUILD/INC/MACROS.I
|
|
|
|
|
.INB /A2OSX.BUILD/INC/A2OSX.I
|
|
|
|
|
.INB /A2OSX.BUILD/INC/MLI.ERR.I
|
2016-05-01 21:13:54 +00:00
|
|
|
|
*--------------------------------------
|
2017-02-21 17:01:30 +00:00
|
|
|
|
X.COPY.TO.DEST .EQ 1
|
2016-11-01 21:37:12 +00:00
|
|
|
|
X.DELETE.SOURCE .EQ 0
|
2016-05-01 21:13:54 +00:00
|
|
|
|
*--------------------------------------
|
2017-03-29 15:48:15 +00:00
|
|
|
|
.INB /A2OSX.SRC/BIN/X.CPMVRM.S
|
|
|
|
|
.INB /A2OSX.SRC/BIN/X.FILEENUM.S
|
2016-05-01 21:13:54 +00:00
|
|
|
|
*--------------------------------------
|
2016-11-01 21:37:12 +00:00
|
|
|
|
CS.END
|
2016-05-01 21:13:54 +00:00
|
|
|
|
*--------------------------------------
|
2017-06-23 12:04:39 +00:00
|
|
|
|
OptionList >PSTR "CRYQcryq"
|
|
|
|
|
OptionVars .DA #bContinue,#bRecurse,#bNoConfirm,#bQuiet,#bContinue,#bRecurse,#bNoConfirm,#bQuiet
|
2016-05-01 21:13:54 +00:00
|
|
|
|
*--------------------------------------
|
2017-06-23 12:04:39 +00:00
|
|
|
|
MSG.USAGE >CSTR "Usage : CP [Src File/Dir, *,? wildcards allowed]\r\n -C : Continue on error\r\n -Q : Quiet\r\n -R : Recurse subdirectories\r\n -Y : Dont't prompt for override\r\n"
|
2017-06-27 16:00:32 +00:00
|
|
|
|
MSG.DIR >CSTR "CP Dir :%S to %S..."
|
|
|
|
|
MSG.FILE >CSTR "CP File:%S to %S..."
|
2017-06-27 20:37:45 +00:00
|
|
|
|
MSG.OVERWRITE >CSTR "\r\nOverwrite [Yes,No,All]?"
|
2017-04-03 21:13:46 +00:00
|
|
|
|
MSG.OK >PSTR "[OK]\r\n"
|
|
|
|
|
MSG.ERR >PSTR "[%h]\r\n"
|
2017-06-21 15:46:43 +00:00
|
|
|
|
MSG.DONE >PSTR "%D File(s) Copied.\r\n"
|
2016-05-01 21:13:54 +00:00
|
|
|
|
*--------------------------------------
|
2016-11-01 21:37:12 +00:00
|
|
|
|
STAT .BS S.STAT
|
|
|
|
|
ArgCount .BS 1
|
2016-11-13 21:03:31 +00:00
|
|
|
|
ArgIndex .BS 1
|
2016-05-01 21:13:54 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DUMMY
|
|
|
|
|
.OR 0
|
|
|
|
|
DS.START
|
2016-11-01 21:37:12 +00:00
|
|
|
|
Index .BS 1
|
2016-11-08 16:56:05 +00:00
|
|
|
|
hDIRs .BS X.MAX.RECURSE
|
|
|
|
|
hDIRENTs .BS X.MAX.RECURSE
|
|
|
|
|
oDIRENTs .BS X.MAX.RECURSE*2
|
2017-06-27 20:37:45 +00:00
|
|
|
|
|
2016-11-08 16:56:05 +00:00
|
|
|
|
hSrcBasePath .BS 1
|
2016-11-01 21:37:12 +00:00
|
|
|
|
hFilter .BS 1
|
2017-06-27 20:37:45 +00:00
|
|
|
|
hSrcFullPath .BS 1
|
2017-02-20 17:16:23 +00:00
|
|
|
|
hSrcFile .BS 1
|
2017-06-27 20:37:45 +00:00
|
|
|
|
|
|
|
|
|
hDstBasePath .BS 1
|
|
|
|
|
hDstFileName .BS 1
|
|
|
|
|
hDstFullPath .BS 1
|
2017-02-20 17:16:23 +00:00
|
|
|
|
hDstFile .BS 1
|
2017-06-27 20:37:45 +00:00
|
|
|
|
|
2017-02-20 17:16:23 +00:00
|
|
|
|
bPause .BS 1
|
2017-02-21 17:01:30 +00:00
|
|
|
|
bCopy .BS 1
|
2017-02-22 16:32:02 +00:00
|
|
|
|
hToDelete .BS 1
|
2017-02-21 17:01:30 +00:00
|
|
|
|
CopyRC .BS 1
|
2017-02-26 18:34:00 +00:00
|
|
|
|
RC .BS 1
|
2017-06-23 14:55:47 +00:00
|
|
|
|
bWildcard .BS 1
|
2016-11-01 21:37:12 +00:00
|
|
|
|
bContinue .BS 1
|
|
|
|
|
bRecurse .BS 1
|
|
|
|
|
bNoConfirm .BS 1
|
2017-06-23 12:04:39 +00:00
|
|
|
|
bQuiet .BS 1
|
2017-06-21 15:46:43 +00:00
|
|
|
|
Count .BS 2
|
2016-05-01 21:13:54 +00:00
|
|
|
|
DS.END
|
|
|
|
|
.ED
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
2017-03-29 15:48:15 +00:00
|
|
|
|
SAVE /A2OSX.SRC/BIN/CP.S
|
2016-05-01 21:13:54 +00:00
|
|
|
|
ASM
|