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
/
ZSYS
/
SIMTEL20
/
ZCPR3
/
IF.HLP
< prev
next >
Wrap
Text File
|
2000-06-30
|
13KB
|
458 lines
;
-- Flow Commands --
-- IF Commands -- -- IF Condition Summaries --
1 Transient IF T Transient IF
2 Resident IF R Resident IF
-- Others --
3 IF Status Display
4 ELSE
5 FI
6 XIF
:1
Command: IF 1.1
Syntax:
IF cond args
or
IF ~cond args
Function:
I╞á test≤ thσ indicateΣ conditioε t∩ seσ iµ i⌠ i≤ TRUE¼ ì
and¼á iµá so¼á set≤á thσ Flo≈ Statσ t∩á TRU┼á (allowinτá thσ ì
followinτ command≤ t∩ execute)«á Iµ thσ conditioε i≤ FALSE¼ ì
thσá Flo≈ Statσ i≤ se⌠ t∩ FALS┼ (allowinτ onl∙ Flo≈ Command≤ ì
to execute).
Options:
Option Meaning
T TRUE (Flow State is Set to TRUE)
F FALSE (Flow State is Set to FALSE)
EMPTY afn,... If all files in the indicated list
are EMPTY (size is 0K), then Flow
State is Set to TRUE
ERROR If the ZCPR3 Error Flag is Set, then
Flow State is Set to TRUE
EXIST afn,... If all files in the indicated list
exist, then Flow State is Set to TRUE
INPUT User input is enabled, and if the user
strikes T, Y, <CR>, or <SP>, the
Flow State is Set to TRUE
NULL afn If there is no 'afn' (field is blank),
then the Flow State is Set to TRUE
TCAP If a Z3TCAP is installed, the Flow State
is Set to TRUE
WHEEL If the Wheel Byte is Set, the Flow State
is Set to TRUE
reg value If the indicated register (0-9) has the
indicateΣ valuσ (0-255)¼ thσ Flow
State is Set to TRUE
afn1=afn2 If the two AFNs are identical in name
(11 char FILENAME.TYP are same), the
Flow State is Set to TRUE
Comments:
Iε al∞ cases¼á iµ thσ indicateΣ conditioε i≤ TRUE¼á thσ ì
Flo≈á Statσ i≤ Se⌠ t∩ TRUE╗á iµ thσ indicateΣá conditioεá i≤ ì
FALSE, the Flow State is Set to FALSE.
Thi≤á commanΣá i≤ invokeΣ iµ thσ curren⌠á Flo≈á CommanΣ ì
Packagσá ha≤á thσ IF.CO═ facilit∙ enabled«á Iµ thi≤ i≤á thσ ì
case¼á wheneve≥ aε I╞ commanΣ i≤ issued¼á thσ FC╨ wil∞á loaΣ ì
IF.CO═á froφ thσ ROO╘ director∙ int∩ memor∙ anΣ executσá it« ì
Thσá commanΣ tai∞ i≤ passeΣ t∩ IF.COM¼á anΣ IF.CO═ act≤ a≤ ß ì
conventiona∞ CO═ filσ froφ tha⌠ poin⌠ forward«á Al∞ buffer≤ ì
arσá loadeΣ correctl∙ (FCB≤ a⌠ 5C╚ anΣ 6CH¼á TBUF╞á a⌠á 80H¼ ì
etc).
┴á leadinτá tildßá (~⌐á characte≥á beforσá ßá conditioε ì
negate≤á thσ effec⌠ oµ thσ condition«á Iµ thσ conditioεá i≤ ì
FALSE¼á thσá Flo≈á Statσá i≤ Se⌠ t∩á TRUE¼á anΣá vice-versa« ì
Example:
"IF ~T" is the same as "IF F"
"IF ~NULL arg" is TRUE if 'arg' is non-blank
"IF ~EXIST afn,..." is TRUE if 'afn,...' do NOT
exist (AFN and AFN ... must each not exist)
Fo≥ eacΦ conditioε given¼ onl∙ thσ firs⌠ tw∩ character≤ ì
are significant (eg, NU for NULL).
Selected Error Messages:
"N∩á I╞á Conditioεá Givenóá mean≤á tha⌠á thσá conditioε ì
expressed was not one of the valid conditions.
Examples of Use:
IF NULL $1
- if the indicated parameter (from within a SUBMIT
or ZEX command file) is not provided, set the
Flow State to TRUE
IF ~EXIST ZEX.ASM,ZEX.ZEX
- if any one of these files does not exist, the
Flow State is set to TRUE
IF EXIST ZEX.ASM,ZEX.ZEX
- if any one of these files does not exist, the
Flow State is set to FALSE (ie, all files
must exist for a TRUE Flow State)
IF NEC=$1
- if the first passed parameter is the same as
the file name "NEC.", then the Flow State
is Set to TRUE
IF 5 5
- if Register 5 = 5, the Flow State is Set to TRUE
:2
Command: IF (as implemented in SYSFCP 1.0)
Syntax:
IF cond arg
or
IF ~cond arg
Function:
I╞á test≤ thσ indicateΣ conditioε t∩ seσ iµ i⌠ i≤ TRUE¼ ì
and¼á iµá so¼á set≤á thσ Flo≈ Statσ t∩á TRU┼á (allowinτá thσ ì
followinτ command≤ t∩ execute)«á Iµ thσ conditioε i≤ FALSE¼ ì
thσá Flo≈ Statσ i≤ se⌠ t∩ FALS┼ (allowinτ onl∙ Flo≈ Command≤ ì
to execute).
Thσ I╞ commanΣ describeΣ herσ i≤ residen⌠ withiε SYSFC╨ ì
1.0 when the COMIF equate is set to FALSE.
Options:
Option Meaning
T The Flow State is Set to TRUE
F The Flow State is Set to FALSE
EMPTY afn If the indicated file is empty (size is
0K), the Flow State is Set to TRUE
ERROR If the ZCPR3 System Error Flag is SET,
the Flow State is Set to TRUE
EXIST afn If the indicated file exists, the Flow
State is Set to TRUE
INPUT The user is prompted for input, and if
he responds with T, Y, <CR>, or <SP>,
the Flow State is Set to TRUE
NULL afn If the 2nd FCB (afn) is blank, the Flow
State is Set to TRUE
TCAP If the ZCPR3 TCAP entry is available,
the Flow State is Set to TRUE
WHEEL If the Wheel Byte is TRUE, the Flow
State is Set to TRUE
reg val If the indicated register (0-9) contains
the indicated value (0-255), the
Flow State is Set to TRUE
afn1=afn2 If the two AFNs are the same, the Flow
State is Set to TRUE
Comments:
Iε al∞ cases¼á iµ thσ indicateΣ conditioε i≤ TRUE¼á thσ ì
Flo≈á Statσ i≤ Se⌠ t∩ TRUE╗á iµ thσ indicateΣá conditioεá i≤ ì
FALSE, the Flow State is Set to FALSE.
Thi≤á commanΣá i≤ invokeΣ iµ thσ curren⌠á Flo≈á CommanΣ ì
Packagσá ha≤ thσ IF.CO═ facilit∙ disabled«á Iµ thi≤ i≤á thσ ì
case¼ wheneve≥ aε I╞ commanΣ i≤ issued¼ thσ FC╨ wil∞ resolvσ ì
i⌠ internally.
EacΦá oµ thσ option≤ oµ thσ Residen⌠ I╞ ma∙ o≥ ma∙á no⌠ ì
bσ enabled«á Thesσ option≤ arσ installation-dependent¼á anΣ ì
thσ SHO╫ commanΣ wil∞ displa∙ thσ availablσ option≤ fo≥á an∙ ì
installation.
┴á leadinτá tildßá (~⌐á characte≥á beforσá ßá conditioε ì
negate≤á thσ effec⌠ oµ thσ condition«á Iµ thσ conditioεá i≤ ì
FALSE¼á thσá Flo≈á Statσá i≤ Se⌠ t∩á TRUE¼á anΣá vice-versa« ì
Example:
"IF ~T" is the same as "IF F"
"IF ~NULL arg" is TRUE if 'arg' is non-blank
"IF ~EXIST afn" is TRUE if 'afn' does NOT
exist
Fo≥ eacΦ conditioε given¼ onl∙ thσ firs⌠ tw∩ character≤ ì
are significant (eg, NU for NULL).
Selected Error Messages:
None
Examples of Use:
IF NULL $1
- if the indicated parameter (from within a SUBMIT
or ZEX command file) is not provided, set the
Flow State to TRUE
IF ~EXIST ZEX.ASM
- if any ZEX.ASM does not exist, the
Flow State is set to TRUE
IF NEC=$1
- if the first passed parameter is the same as
the file name "NEC.", then the Flow State
is Set to TRUE
IF 5 5
- if Register 5 = 5, the Flow State is Set to TRUE
:3
Command: IFSTAT 1.0
Syntax:
IFSTAT
Function:
IFSTA╘ i≤ useΣ t∩ displa∙ thσ curren⌠ I╞ level« IFSTA╘ ì
wil∞á repor⌠á witΦ ß Leve∞ Numbe≥ froφ ▒ t∩ ╕á (IF≤á ma∙á bσ ì
nesteΣ u≡ t∩ ╕ level≤ deep⌐ o≥ i⌠ wil∞ repl∙ witΦ "N∩ Activσ ì
IF".
Options:
None
Comments:
Thσ Flo≈ Statσ MUS╘ bσ TRU┼ fo≥ IFSTA╘ t∩ run¼ sincσ i⌠ ì
is a COM file like any other.
Selected Error Messages:
None
Examples of Use:
IFSTAT
-- the current IF level is displayed
:T
Summary of Transient IF Conditions
Option Meaning
T TRUE (Flow State is Set to TRUE)
F FALSE (Flow State is Set to FALSE)
EMPTY afn,... If all files in the indicated list
are EMPTY (size is 0K), then Flow
State is Set to TRUE
ERROR If the ZCPR3 Error Flag is Set, then
Flow State is Set to TRUE
EXIST afn,... If all files in the indicated list
exist, then Flow State is Set to TRUE
INPUT User input is enabled, and if the user
strikes T, Y, <CR>, or <SP>, the
Flow State is Set to TRUE
NULL afn If there is no 'afn' (field is blank),
then the Flow State is Set to TRUE
TCAP If a Z3TCAP is installed, the Flow State
is Set to TRUE
WHEEL If the Wheel Byte is Set, the Flow State
is Set to TRUE
reg value If the indicated register (0-9) has the
indicateΣ valuσ (0-255)¼ thσ Flow
State is Set to TRUE
afn1=afn2 If the two AFNs are identical in name
(11 char FILENAME.TYP are same), the
Flow State is Set to TRUE
:R
Summary of Resident IF Conditions
Option Meaning
T The Flow State is Set to TRUE
F The Flow State is Set to FALSE
EMPTY afn If the indicated file is empty (size is
0K), the Flow State is Set to TRUE
ERROR If the ZCPR3 System Error Flag is SET,
the Flow State is Set to TRUE
EXIST afn If the indicated file exists, the Flow
State is Set to TRUE
INPUT The user is prompted for input, and if
he responds with T, Y, <CR>, or <SP>,
the Flow State is Set to TRUE
NULL afn If the 2nd FCB (afn) is blank, the Flow
State is Set to TRUE
TCAP If the ZCPR3 TCAP entry is available,
the Flow State is Set to TRUE
WHEEL If the Wheel Byte is TRUE, the Flow
State is Set to TRUE
reg val If the indicated register (0-9) contains
the indicated value (0-255), the
Flow State is Set to TRUE
afn1=afn2 If the two AFNs are the same, the Flow
State is Set to TRUE
:4
Command: ELSE (from SYSFCP 1.0)
Syntax:
ELSE anytext
Function:
Iµá thσ curren⌠ Flo≈ Statσ i≤ TRUE¼á ELS┼ toggle≤ i⌠ t∩ ì
FALSE.
Iµ thσ curren⌠ Flo≈ Statσ i≤ FALS┼ anΣ thσ previou≤á I╞ ì
Leve∞á i≤á iε ß TRU┼ State¼á ELS┼ toggle≤ thσ Flo≈ Statσá t∩ ì
TRUE«á Iµ thσ previou≤ I╞ Leve∞ i≤ iε ß FALS┼á State¼á ELS┼ ì
does nothing.
Options:
None (any text may follow the verb ELSE)
Comments:
None
Selected Error Messages:
No error messages are generated
Examples of Use:
IF NEC=$1
< statements >
ELSE
< statements >
FI
:5
Command: FI (from SYSFCP 1.0)
Syntax:
FI anytext
Function:
F╔á terminate≤á thσ curren⌠ I╞ Level«á Iµ therσ i≤á n∩ ì
current IF level, FI does nothing.
Options:
None (any text may follow the verb FI)
Comments:
None
Selected Error Messages:
None
Examples of Use:
IF EXIST MYFILE.ASM
< statements >
ELSE
< statements >
FI
:6
Command: XIF (from SYSFCP 1.0)
Syntax:
XIF anytext
Function:
Iµá thσá curren⌠á Flo≈ Statσ i≤á TRUE¼á XI╞á exit≤á al∞ ì
pendinτá IFs«á I⌠á reduce≤á thσ I╞ Leve∞ t∩á ░á (n∩á I╞á iε ì
effect).
If the current Flow State is FALSE, XIF does nothing.
Options:
None
Comments:
None
Selected Error Messages:
None
Examples of Use:
;=LOOP
XIF
<statements>
IF 1 3
GOTO LOOP
FI