You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ cmdname - load and execute named CMD, if in PATH
19
19
20
20
Once set, binary files of type `CMD` in the specified directories can be invoked by name.
21
21
* CMD file is loaded at $4000 and invoked; should return (`rts`) on completion.
22
+
* $4000-$5FFF is assumed reserved for the CMD file and any buffers it needs.
22
23
* The command line will be present at $200 (`GETLN` input buffer).
23
24
* Supports multi-segment, colon-separated paths, e.g. `/hd/cmds:/hd2/more.cmds`
24
25
* Commands can use the BI parser for arguments. See `chtype.cmd.s` for an example.
@@ -46,13 +47,16 @@ Notes:
46
47
* Commands with BASIC keywords as _prefixes_ are allowed as long as the command continues with an alphabetic character. For example, `ONLINE` is allowed despite conflicting with the valid BASIC statement `ONLINE GOTO10` which is short for `ON LINE GOTO 10`.
47
48
48
49
Sample commands included:
49
-
*`BELL` - beeps the speaker
50
-
*`HELLO` - shows a short message
51
-
*`ONLINE` - lists online volumes (volume name, slot and drive)
52
-
*`ECHO` - echoes back anything following the command
53
-
*`CHTYPE` - change the type/auxtype of a file. e.g. `chtype file,T$F1,A$1234`
54
-
*`T` (type) and `A` (auxtype) are optional. If neither is specified, current types are shown.
55
-
*`S` and `D` arguments can be used to specify slot and drive.
56
-
*`CHTIME` - change the modification date/time of a file. e.g. `chtime file,A$1234,B$5678`
57
-
*`A` (date) and `B` (time) are optional. If neither is specified, current values are shown.
58
-
*`S` and `D` arguments can be used to specify slot and drive.
50
+
* Useful utilities:
51
+
*`ONLINE` - lists online volumes (volume name, slot and drive)
52
+
*`COPY` - copy a single file, e.g. `copy /path/to/file,dstfile`
53
+
*`CHTYPE` - change the type/auxtype of a file. e.g. `chtype file,T$F1,A$1234`
54
+
*`T` (type) and `A` (auxtype) are optional. If neither is specified, current types are shown.
55
+
*`S` and `D` arguments can be used to specify slot and drive.
56
+
*`CHTIME` - change the modification date/time of a file. e.g. `chtime file,A$1234,B$5678`
57
+
*`A` (date) and `B` (time) are optional. If neither is specified, current values are shown.
58
+
*`S` and `D` arguments can be used to specify slot and drive.
59
+
* Other examples:
60
+
*`BELL` - beeps the speaker
61
+
*`HELLO` - shows a short message
62
+
*`ECHO` - echoes back anything following the command
0 commit comments