home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
z
/
zap
/
!Zap
/
3rdParty
/
Salt
/
DS
next >
Wrap
Text File
|
1996-10-28
|
5KB
|
139 lines
| ***************************************************************
| * ZapDS extensions *
| ***************************************************************
DS_RUNAPP
Save the file if changes have been made, then try to run it as an
application (failing this, the file itself). The window is sent to the back.
DS_INSERT
Insert a space at the cursor as in !Edit.
In byte/word/code modes, insert a zero byte or word as appropriate.
DS_EVAL <string>
<string> = "<base>:<expression>" or "<expression>"
Evaluate the supplied expression (as *EVAL) and inserts the signed result in
the supplied base (the exact format is mode dependent).
If the expression evaluates to a string, the base (if supplied) is ignored.
DS_UEVAL <string>
<string> = "<base>:<expression>" or "<expression>"
Evaluate the supplied expression (as *EVAL) and inserts the unsigned result
in the supplied base (the exact format is mode dependent).
If the expression evaluates to a string, the base (if supplied) is ignored.
DS_EVALH <string>
Evaluate the supplied string (as *EVAL) and inserts the result as a
hexadecimal number (the exact format is mode dependent).
If it evaluates to a string, the base (if supplied) is ignored.
DS_ADRL <string>
<string> = "<condition code> <register>,<address>"
Assemble a long (two instruction) ADR.
The condition code is optional.
DS_ADRX
<string> = "<condition code> <register>,<address>"
Assemble a very long (three instruction) ADR.
The condition code is optional.
DS_FINDFILE
Look for an object name (file or directory) at the cursor. If successful,
then attempt to load the file or open the directory (as appropriate).
DS_OPENPARENT
Open the directory containing the current file.
DS_SWAPCASECURSOR
Swaps the case of the character at the cursor, advancing the cursor by one -
whether there's a selection or not.
DS_SAVEKEEPSTAMP
Saves the file immediately (ie. no prompt), but preserves the datestamp.
DS_STRIPCTRLCODES <byte>
Strip control codes (exc. tab & return characters) from a file, and remove
everything from the first ctrl-Z (soft-EOF) onwards.
Bit 0 set: strip control codes
Bit 1 set: ... except for \a, \b and \f
Bit 2 set: remove everything from soft-EOF
Default parameter value is 3.
DS_UNTABIFY
Converts tabs to spaces (the reverse of STRIPSPACES 4).
In text language modes (C etc.) tabs in quotes " are left intact.
DS_MESSAGEID
In Email mode, will generate a new date line and message ID.
Requires a valid "From: " line and that the "Date: " and "Message-ID: " lines
are present.
DS_STRIPCTRLWITHMASK <string>
Strip control codes from a file, according to the given mask (*Eval'uated to
a number) in which bit n set = remove chr code n. The default is to strip out
all but \a, \b, \f, and the current return and tab characters.
DS_ADD <string>
Adds the number (given in the string) to the current byte/word.
DS_SUB <string>
Subtracts the number (given in the string) from the current byte/word.
DS_RSB <string>
Subtracts the current byte/word from the number (given in the string).
DS_AND <string>
ANDs the number (given in the string) with the current byte/word.
DS_OR <string>
ORs the number (given in the string) with the current byte/word.
DS_EOR <string>
EORs the number (given in the string) with the current byte/word.
DS_SWITONAME
Replaces the number at the cursor with the equivalent SWI name.
DS_SWITONUMBER
Replaces the SWI name at the cursor with the equivalent number.
DS_TOICON
Sends the selected text to the next thing you click on (if it can accept the
input focus). Adjust causes a ^U to be typed first.
DS_CLOSEFILE
Discards the file, prompting first if it's modified.
IF
IF "C[^]<chr list>" checks the character at the cursor position.
IF "P[^]<chr list>" checks the character to the left of the cursor.
IF "M[^]<mode list>" checks the current mode.
The result is stored as the IF state.
AND_IF
New IF state = old IF state AND the result of this IF.
(No checking is done if the old IF state is FALSE.)
See also IF.
OR_IF
New IF state = old IF state OR the result of this IF.
(No checking is done if the old IF state is TRUE.)
See also IF.
EOR_IF
New IF state = old IF state EOR the result of this IF.
See also IF.
IF_TRUE
Executes the given command string if the IF state is TRUE.
IF_FALSE
Executes the given command string if the IF state is FALSE.
FORMAT_INDENTED
An indented version of FORMATTEXT. The text must already be indented using
the supplied string; if you specify "\<" you get whatever's to the left of
the cursor.
| End