2015-08-05 20:38:05 +00:00
|
|
|
|
PR#3
|
2017-03-29 15:48:15 +00:00
|
|
|
|
PREFIX /A2OSX.BUILD
|
2015-08-05 20:38:05 +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/RM
|
2015-08-05 20:38:05 +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
|
2015-08-05 20:38:05 +00:00
|
|
|
|
*--------------------------------------
|
2017-02-21 17:01:30 +00:00
|
|
|
|
X.COPY.TO.DEST .EQ 0
|
2017-02-22 16:32:02 +00:00
|
|
|
|
X.DELETE.SOURCE .EQ 1
|
2016-10-30 18:19:43 +00:00
|
|
|
|
*--------------------------------------
|
2017-03-29 15:48:15 +00:00
|
|
|
|
.INB /A2OSX.SRC/BIN/X.CPMVRM.S
|
|
|
|
|
.INB /A2OSX.SRC/BIN/X.FILEENUM.S
|
2015-08-05 20:38:05 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.END
|
2016-10-30 18:19:43 +00:00
|
|
|
|
*--------------------------------------
|
2017-06-23 12:04:39 +00:00
|
|
|
|
OptionList >PSTR "CRYQcryq"
|
|
|
|
|
OptionVars .DA #bContinue,#bRecurse,#bNoConfirm,#bQuiet,#bContinue,#bRecurse,#bNoConfirm,#bQuiet
|
2016-10-30 18:19:43 +00:00
|
|
|
|
*--------------------------------------
|
2017-06-23 12:04:39 +00:00
|
|
|
|
MSG.USAGE >CSTR "Usage : RM [File/Dir, *,? wildcards allowed]\r\n -C : Continue on error\r\n -Q : Quiet\r\n -R : Recurse subdirectories\r\n"
|
2017-06-27 16:00:32 +00:00
|
|
|
|
MSG.DIR >CSTR "RM Dir :%S..."
|
|
|
|
|
MSG.FILE >CSTR "RM File:%S..."
|
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) Removed.\r\n"
|
2016-10-30 18:19:43 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
STAT .BS S.STAT
|
|
|
|
|
ArgCount .BS 1
|
2017-02-22 16:32:02 +00:00
|
|
|
|
ArgIndex .BS 1
|
2015-08-05 20:38:05 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DUMMY
|
|
|
|
|
.OR 0
|
|
|
|
|
DS.START
|
2016-10-30 18:19:43 +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 16:00:32 +00:00
|
|
|
|
|
2016-11-08 16:56:05 +00:00
|
|
|
|
hSrcBasePath .BS 1
|
2016-10-30 18:19:43 +00:00
|
|
|
|
hFilter .BS 1
|
2017-06-27 16:00:32 +00:00
|
|
|
|
hSrcFullPath .BS 1
|
2017-02-22 16:32:02 +00:00
|
|
|
|
hSrcFile .BS 1
|
2017-06-27 16:00:32 +00:00
|
|
|
|
|
2017-02-22 16:32:02 +00:00
|
|
|
|
bPause .BS 1
|
|
|
|
|
bCopy .BS 1
|
|
|
|
|
hToDelete .BS 1
|
2017-02-26 18:34:00 +00:00
|
|
|
|
RC .BS 1
|
2017-06-23 14:55:47 +00:00
|
|
|
|
bWildcard .BS 1
|
2017-06-27 20:37:45 +00:00
|
|
|
|
|
2016-10-30 18:19:43 +00:00
|
|
|
|
bContinue .BS 1
|
|
|
|
|
bRecurse .BS 1
|
2017-02-22 16:32:02 +00:00
|
|
|
|
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
|
2015-08-05 20:38:05 +00:00
|
|
|
|
DS.END
|
|
|
|
|
.ED
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
2017-03-29 15:48:15 +00:00
|
|
|
|
SAVE /A2OSX.SRC/BIN/RM.S
|
2015-08-05 20:38:05 +00:00
|
|
|
|
ASM
|