home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
ZCPR33
/
A-R
/
C-HELP.LBR
/
CMD.HZP
/
CMD.HLP
Wrap
Text File
|
2000-06-30
|
3KB
|
64 lines
;
) CMD.COM (
Size (recs) CRC Version Author/Latest Issue Disk
1k (7) 8E8C 1.1 Royce Shofner 3/87 Z3COM2
==============================================================================
CM─á i≤á useΣá t∩ definσ anΣ ruε ß commanΣ line«á I⌠á eithe≥á accept≤á thσ ì
commanΣ linσ (includinτ semicolons⌐ whicΦ follo≈ thσ verΓ CM─ int∩ thσ commanΣ ì
linσá buffe≥ or¼á iµ n∩ inpu⌠ i≤ provided¼á i⌠ prompt≤ thσ use≥ fo≥ inpu⌠á anΣ ì
theεá place≤ thi≤ int∩ thσ commanΣ linσ buffer«á Origina∞ v≤ 1.░ (7/84⌐ b∙ R« ì
Conn.
Thσá probleφá tha⌠ CM─ addresse≤ i≤ thσ casσ wherσ thσ maiεá prograφá iεá ß ì
shel∞á sequencσá know≤ nothinτ abou⌠ shells¼á anΣ i⌠ i≤ desireΣ t∩á leavσá thσ ì
sequencσ sometime«á CM─ provide≤ thi≤ out« I⌠ wa≤ buil⌠ specificall∙ fo≥ usσ ì
witΦ thσ SHSE╘ command¼ althougΦ i⌠ ma∙ finΣ othe≥ applications.
) 1- Syntax 2- Notes 3- Examples of Use 4- CMDPATCH.Z80 (
:1
Syntax: CMD cmd1;cmd2;...
or CMD
The sequence of commands "cmd1;cmd2;..." becomes the command line.
:2
CMD Notes:
a. CM─ set≤ thσ ERRO╥ messagσ oµ ZCPR3¼ás∩ tha⌠áprogram≤áoε dowε thσ linσ
caε determinσ iµ inpu⌠áwa≤ madσ wheε CM─ wa≤ run«á Iµ thσ user simpl∙
strike≤ ß RETUR╬ iε responsσ t∩ thσ CM─ prompt¼ aε erro≥ i≤ indicated«
Test≤ caε late≥ bσ made¼ likσ I╞ ERROR¼ t∩ checδ thi≤ anΣ makσ thσ
command flow change depending on the outcome.
:3
Examples of Use:
a. SHSET MU3;CMD <-- This will run MU3, allow the user to do what
he wants, and then reenter MU3. 'SHCTRL POP'
would pop the shell stack and break the
'MU3;CMD' loop.
:4
CMDPATCH.Z80
Size (recs) CRC Version Author/Latest Issue Disk
1.0 Jay Sage 4/87 Z3UTIL10
==============================================================================
CMDPATCH.Z80 is an overlay which patches two changes into version 1.0 of
CMD. The first change makes it reset the shell bit in the message buffer
command status flag so that the external or internal error handler will be
invoked for bad commands. Before, the error was treated as a shell error,
which resulted in the entire shell stack being cleared. The second change
eliminates the extra space after the prompt character '>' in the command
prompt. This extra space was confusing in cases where one wanted deliberately
to enter a command with a leading space to force invocation of the ZCPR33
extended command processor.
CMDPATCH.Z80 should be assembled to a HEX file and overlaid on CMD.COM
using the MLOAD command line: MLOAD CMDNEW=CMD.COM,CMDPATCH1.