home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 26 / CD_ASCQ_26_1295.iso / vrac / shwtxt19.zip / SHOWTEXT.INS < prev    next >
Text File  |  1995-09-08  |  6KB  |  186 lines

  1. SHOWTEXT PROGRAMMING LANGUAGE  (version 1.9)
  2. INSTRUCTION SET SUMMARY
  3. (syntax only - additional documentation is in SHOWTEXT.DOC)
  4.  
  5. ;minimum,variable,maximum ;...etc...    {force variable into range (inclusive) }
  6. +acikmpst??v???xy  ───┐
  7. -acikmpst??v???xy     ├─special prefix commands        { ? = a number }
  8. .acikmpst??v???xy  ───┘
  9. ALIAS %varname=var
  10. ALIAS %varname=var,%varname=var
  11. ARROW
  12. ARROW OFF
  13. ATTR color_attribute_byte_value
  14. BEEP
  15. BCOPY buf TO buf (row1,col1,row2,col2)                         
  16. BCOPY buf TO buf (row1,col1,row2,col2) (row,col)        
  17. BFILL buf (row1,col1,row2,col2) val val
  18. BFILL buf (row1,col1,row2,col2) ASCII val
  19. BFILL buf (row1,col1,row2,col2) ATTR val
  20. BMOD buf (row1,col1,row2,col2) and_mask , or_mask , xor_mask
  21. BSWAP buf TO buf (row1,col1,row2,col2)                         
  22. BSWAP buf TO buf (row1,col1,row2,col2) (row,col)        
  23. BXOR command was replaced by the more general BMOD command
  24. C@ row,col
  25. CALL subroutine (val,val,..etc..) var,var,..etc..
  26. CENTER MOUSE key
  27. CHK
  28. CLS
  29. CLS foreground,background
  30. COLOR foreground
  31. COLOR foreground,background
  32. COPY (source,destination) fade
  33. CSR LIM
  34. CSR LIM (row1,col1,row2,col2)
  35. CSR OFF
  36. CSR ON
  37. CSR ON num TO num              {num is the scan line 0 to 7}
  38. DIRTOP
  39. DIRBOT
  40. DIRPRV
  41. DIRNXT
  42. DIRCMP or DIRCMP "filename" or DIRCMP $(bfr,row,col1,col2)   {use ? as wildcard}
  43. DIRCPY buffer,fade
  44. DIRFND "filename" or DIRFND $(bfr,row,col1,col2)             {NO wildcards}
  45. DIRPRT buffer,row,column,attribute
  46. DO ... LOOP
  47. ERRORLEVEL dos_errorlevel_value
  48. EXIT       {or X}
  49. EXITC      {or XC}
  50. EXITDO     {or XDO}
  51. EXITFOR    {or XFOR}
  52. EXITWHILE  {or XWHILE}
  53. FOR var = val to val STEP val      {positive steps-used with NEXT instruction}
  54. FOR var = val to val NSTEP val     {negative steps-used with NEXT instruction}
  55.                                    {note: val itself is still positive}
  56. GOTO label    {or GT label}
  57. GOSUB label   {or GS label}        {used with RET instruction}
  58. {note: The GOTO/GOSUB keywords used elsewhere canNOT be shortened to GT/GS}
  59. GOLOOP
  60. GONEXT
  61. GOWEND
  62. IF ... THEN ... ELSEIF ... ELSE ... ENDIF
  63. IF BDIFF buf TO buf (row1,col1,row2,col2) (row,col) label
  64. IF BSAME buf TO buf (row1,col1,row2,col2) (row,col) label
  65. IF CLK (row1,col1,row2,col2) label
  66. IF NOT CLK (row1,col1,row2,col2) label
  67. IF CSR (row1,col1,row2,col2) label
  68. IF NOT CSR (row1,col1,row2,col2) label
  69. IF KEY key label
  70. IF NOT KEY key label
  71. IF Tn ticks label           {n=0 to 15}
  72. IF NOT Tn ticks label       {n=0 to 15}
  73. IF val label
  74. IF NOT val label
  75. INPUT TEXT (row,startcolumn,endcolumn,attribute)
  76. INPUT TEXT CAPS (row,startcolumn,endcolumn,attribute)
  77. INPUT var  (row,startcolumn,endcolumn,attribute)
  78. INTKEYS ON|OFF|CLEAR
  79. LEFT MOUSE key
  80. MEM PEEK offset var
  81. MOUSE ON --or-- MOUSE OFF
  82. NEXT
  83. NEXT var
  84. NOCHK
  85. ON INTKEYn key GOTO label             {n=0 to 7}
  86. ON INTKEYn key GOSUB label            {n=0 to 7}
  87. ON var GOTO label1,label2,label3,label4
  88. ON var GOSUB label1,label2,label3,label4
  89. P+
  90. P-
  91. P@ row,col
  92. PCSR LIM
  93. PCSR LIM (row1,col1,row2,col2)
  94. PEEK buf (row,col) var var   
  95. PEEK buf (row,col) ASCII var 
  96. PEEK buf (row,col) ATTR var  
  97. PLAY "play text..."
  98. POKE buf (row,col) val val   
  99. POKE buf (row,col) ASCII val 
  100. POKE buf (row,col) ATTR val  
  101. POP  var
  102. POP  var:var
  103. PORT IN port var
  104. PRINT "text........."
  105. PRINT "text.........";
  106. PRINT CHAR(val)
  107. PRINT CHAR(val);
  108. PRINT var,format                {characters in format= 1 to 9 L Z O Q }
  109. PRINT var,format;               {characters in format= 1 to 9 L Z O Q }
  110. PUSH var
  111. PUSH var:var
  112. RESTART
  113. RESTORE fade
  114. RET                    {use with GOSUB}
  115. RETURN                 {same as RET}
  116. RIGHT MOUSE key
  117. RST K
  118. RST S            {one value at a time}
  119. RST Tn           {n=0 to 15, or n=math expression}
  120. RST TS           {resets all timerS}
  121. SAVE
  122. SCREENSAVER minutes                  {use minutes=0 to disable}
  123. SCROLL DOWN (row1,col1,row2,col2)
  124. SCROLL UP (row1,col1,row2,col2)
  125. SELECT CASE ... CASE ... CASE ELSE ... END SELECT
  126. system variables [info]                   {where info is Tn or ...}
  127.                  [RND num TO num]
  128. TTYPE "text......"
  129. TTYPE "text......";
  130. var=val
  131. var++
  132. var--
  133. var=val+val
  134. var=val-val
  135. var=val*val
  136. var=val/val
  137. var=val~val     {modulo division - returns remainder of val/val}
  138. var=val^val     {exponentiation}
  139. var=val&val     {logical AND}
  140. var=val@val     {logical OR}────┬──alternate OR symbols
  141. var=val|val     {logical OR}────┘
  142. var=val#val     {logical XOR}
  143. var=`val        {logical NOT}
  144. VIRTUAL val
  145. WAIT seconds           {or WT seconds}
  146. WAITKEY                {or WK}
  147. WAITKEY seconds        {or WK seconds}
  148. WAITKEY seconds,label  {or WK seconds,label}
  149. WHILE ... WEND
  150. WINDOW (row1,col1,row2,col2) windowtype           {use current colors}
  151. WINDOW (row1,col1,row2,col2) windowtype,attribute
  152. XBLOAD "filename.txt"
  153. XBSAVE "filename.txt"
  154. XFLOAD "filename.txt"
  155. XFSAVE "filename.txt"
  156. $(buf,row,startcolumn,endcolumn) {used with COPY,PRINT,TTYPE,PLAY,XFLOAD,XFSAVE}
  157. $BUFFERS nn
  158. $DOS command
  159. $LIB ADD filespec1,filespec2,...,...,filespecN
  160. $LIB DIR "directoryname"
  161.  
  162. !  can be used in place of the word PRINT    { e.g.  !"hello world"    }
  163. !! can be used in place of the word TTYPE    { e.g. !!"bon jour monde" }
  164. ?  can be used in place of the word INPUT    { e.g. ?V1(1,15,25,31)    }
  165.  
  166. Notes:
  167.  
  168. "key" is a specified key on the keyboard. note SHIFT CTRL ALT can be used
  169.       but not simultaneously.
  170.  
  171. "label" is a program label. the (:) is not specified here.
  172.  
  173. "num" is a number
  174.  
  175. "val"  is either a number (0 to 255)
  176.        or a variable (V0 to V255)--------------> V(0) to V(255)
  177.        or an indexed variable (VV0 to VV255)---> V(V(0)) to V(V(255))
  178.  
  179. "var"  is either a variable  (V0 to V255) -----> V(0) to V(255)
  180.        or an indexed variable (VV0 to VV255)---> V(V(0)) to V(V(255))
  181.  
  182. Other required data fields can usually be numbers, variables
  183. or indexed variables.
  184. Variables can be of the following types:  V7   %TEMP   VV4   V%MISC 
  185.  
  186.