home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / z / zap / !Zap / 3rdParty / Salt / DS next >
Text File  |  1996-10-28  |  5KB  |  139 lines

  1. | ***************************************************************
  2. | *                      ZapDS extensions            *
  3. | ***************************************************************
  4.  
  5. DS_RUNAPP
  6. Save the file if changes have been made, then try to run it as an
  7. application (failing this, the file itself). The window is sent to the back.
  8.  
  9. DS_INSERT
  10. Insert a space at the cursor as in !Edit.
  11. In byte/word/code modes, insert a zero byte or word as appropriate.
  12.  
  13. DS_EVAL <string>
  14. <string> = "<base>:<expression>" or "<expression>"
  15. Evaluate the supplied expression (as *EVAL) and inserts the signed result in
  16. the supplied base (the exact format is mode dependent).
  17. If the expression evaluates to a string, the base (if supplied) is ignored.
  18.  
  19. DS_UEVAL <string>
  20. <string> = "<base>:<expression>" or "<expression>"
  21. Evaluate the supplied expression (as *EVAL) and inserts the unsigned result
  22. in the supplied base (the exact format is mode dependent).
  23. If the expression evaluates to a string, the base (if supplied) is ignored.
  24.  
  25. DS_EVALH <string>
  26. Evaluate the supplied string (as *EVAL) and inserts the result as a
  27. hexadecimal number (the exact format is mode dependent).
  28. If it evaluates to a string, the base (if supplied) is ignored.
  29.  
  30. DS_ADRL <string>
  31. <string> = "<condition code> <register>,<address>"
  32. Assemble a long (two instruction) ADR.
  33. The condition code is optional.
  34.  
  35. DS_ADRX
  36. <string> = "<condition code> <register>,<address>"
  37. Assemble a very long (three instruction) ADR.
  38. The condition code is optional.
  39.  
  40. DS_FINDFILE
  41. Look for an object name (file or directory) at the cursor. If successful,
  42. then attempt to load the file or open the directory (as appropriate).
  43.  
  44. DS_OPENPARENT
  45. Open the directory containing the current file.
  46.  
  47. DS_SWAPCASECURSOR
  48. Swaps the case of the character at the cursor, advancing the cursor by one -
  49. whether there's a selection or not.
  50.  
  51. DS_SAVEKEEPSTAMP
  52. Saves the file immediately (ie. no prompt), but preserves the datestamp.
  53.  
  54. DS_STRIPCTRLCODES <byte>
  55. Strip control codes (exc. tab & return characters) from a file, and remove
  56. everything from the first ctrl-Z (soft-EOF) onwards.
  57. Bit 0 set: strip control codes
  58. Bit 1 set: ... except for \a, \b and \f
  59. Bit 2 set: remove everything from soft-EOF
  60. Default parameter value is 3.
  61.  
  62. DS_UNTABIFY
  63. Converts tabs to spaces (the reverse of STRIPSPACES 4).
  64. In text language modes (C etc.) tabs in quotes " are left intact.
  65.  
  66. DS_MESSAGEID
  67. In Email mode, will generate a new date line and message ID.
  68. Requires a valid "From: " line and that the "Date: " and "Message-ID: " lines
  69. are present.
  70.  
  71. DS_STRIPCTRLWITHMASK <string>
  72. Strip control codes from a file, according to the given mask (*Eval'uated to
  73. a number) in which bit n set = remove chr code n. The default is to strip out
  74. all but \a, \b, \f, and the current return and tab characters.
  75.  
  76. DS_ADD <string>
  77. Adds the number (given in the string) to the current byte/word.
  78.  
  79. DS_SUB <string>
  80. Subtracts the number (given in the string) from the current byte/word.
  81.  
  82. DS_RSB <string>
  83. Subtracts the current byte/word from the number (given in the string).
  84.  
  85. DS_AND <string>
  86. ANDs the number (given in the string) with the current byte/word.
  87.  
  88. DS_OR <string>
  89. ORs the number (given in the string) with the current byte/word.
  90.  
  91. DS_EOR <string>
  92. EORs the number (given in the string) with the current byte/word.
  93.  
  94. DS_SWITONAME
  95. Replaces the number at the cursor with the equivalent SWI name.
  96.  
  97. DS_SWITONUMBER
  98. Replaces the SWI name at the cursor with the equivalent number.
  99.  
  100. DS_TOICON
  101. Sends the selected text to the next thing you click on (if it can accept the
  102. input focus). Adjust causes a ^U to be typed first.
  103.  
  104. DS_CLOSEFILE
  105. Discards the file, prompting first if it's modified.
  106.  
  107. IF
  108. IF "C[^]<chr list>" checks the character at the cursor position.
  109. IF "P[^]<chr list>" checks the character to the left of the cursor.
  110. IF "M[^]<mode list>" checks the current mode.
  111. The result is stored as the IF state.
  112.  
  113. AND_IF
  114. New IF state = old IF state AND the result of this IF.
  115. (No checking is done if the old IF state is FALSE.)
  116. See also IF.
  117.  
  118. OR_IF
  119. New IF state = old IF state OR the result of this IF.
  120. (No checking is done if the old IF state is TRUE.)
  121. See also IF.
  122.  
  123. EOR_IF
  124. New IF state = old IF state EOR the result of this IF.
  125. See also IF.
  126.  
  127. IF_TRUE
  128. Executes the given command string if the IF state is TRUE.
  129.  
  130. IF_FALSE
  131. Executes the given command string if the IF state is FALSE.
  132.  
  133. FORMAT_INDENTED
  134. An indented version of FORMATTEXT. The text must already be indented using
  135. the supplied string; if you specify "\<" you get whatever's to the left of
  136. the cursor.
  137.  
  138. | End
  139.