| ***************************************************************
| *                      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_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.
(Deprecated command name - use CLOSEFILE instead.)

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 "W[^]<word or word*mask list>" checks the word at the cursor position.
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. Preserves IF state
unless string is prefixed with "^".

IF_FALSE
Executes the given command string if the IF state is FALSE. Preserves IF
state unless string is prefixed with "^".

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.

CLOSEFILE
Discards the file, prompting first if it's modified.

CLOSEALL
Closes all unmodified files.

DISCARDALL
Closes all files, modified or not. No prompts.

SAVEALL
Saves all modified files; those without full pathnames are ignored. Stops on
error or Zap query.

SAVEANDCLOSEALL
Saves then closes all modified files; those without full pathnames are
ignored. Stops on error or Zap query.
( = SAVEALL + CLOSEALL)

SAVEANDDISCARDALL
Saves all modified files, and closes all files; those without full pathnames
are not saved. Stops on error or Zap query.
( = SAVEALL + DISCARDALL)

SENDURL
Sends the URL at the cursor position to any currently-loaded web browser.

SENDURLGIVENOFFSET
Sends the URL at the supplied file offset to any currently-loaded web
browser. This command is intended for use by Zap modes, and should NOT occur
in a learnt sequence.

| End
