home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / PROGRAM / DIVERSEN / SHWTXT12 / SHOWTEXT.INS < prev    next >
Text File  |  1994-09-23  |  5KB  |  148 lines

  1. SHOWTEXT PROGRAMMING LANGUAGE  (version 1.2)
  2. INSTRUCTION SET SUMMARY
  3. (syntax only - additional documentation is in SHOWTEXT.DOC)
  4.  
  5. ALIAS %varname=var
  6. ALIAS %varname=var,%varname=var
  7. ARROW
  8. ARROW OFF
  9. ATTR color_attribute_byte_value
  10. BEEP
  11. BCOPY buf TO buf (row1,col1,row2,col2)                         
  12. BCOPY buf TO buf (row1,col1,row2,col2) (row,col)        
  13. BFILL buf (row1,col1,row2,col2) val val
  14. BFILL buf (row1,col1,row2,col2) ASCII val
  15. BFILL buf (row1,col1,row2,col2) ATTR val
  16. BSWAP buf TO buf (row1,col1,row2,col2)                         
  17. BSWAP buf TO buf (row1,col1,row2,col2) (row,col)        
  18. BXOR buf (row1,col1,row2,col2) val
  19. C@ row,col
  20. CENTER MOUSE key
  21. CHK
  22. CLS
  23. CLS foreground,background
  24. COLOR foreground
  25. COLOR foreground,background
  26. COPY (source,destination) fade
  27. CSR LIM
  28. CSR LIM (row1,col1,row2,col2)
  29. CSR OFF
  30. CSR ON
  31. CSR ON num TO num              {num is the scan line 0 to 7}
  32. DO ... LOOP
  33. ERRORLEVEL dos_errorlevel_value
  34. EXIT
  35. EXITC
  36. FOR var = val to val STEP val     {used with NEXT instruction}
  37. GOTO label
  38. GOSUB label                       {used with RET instruction}
  39. IF ... THEN ... ELSEIF ... ELSE ... ENDIF
  40. IF BDIFF buf TO buf (row1,col1,row2,col2) (row,col) label
  41. IF BSAME buf TO buf (row1,col1,row2,col2) (row,col) label
  42. IF CLK (row1,col1,row2,col2) label
  43. IF NOT CLK (row1,col1,row2,col2) label
  44. IF CSR (row1,col1,row2,col2) label
  45. IF NOT CSR (row1,col1,row2,col2) label
  46. IF KEY key label
  47. IF NOT KEY key label
  48. IF Tn ticks label           {n=0 to 15}
  49. IF NOT Tn ticks label       {n=0 to 15}
  50. IF val label
  51. IF NOT val label
  52. INPUT TEXT (row,startcolumn,endcolumn,attribute)
  53. INPUT TEXT CAPS (row,startcolumn,endcolumn,attribute)
  54. INPUT var  (row,startcolumn,endcolumn,attribute)
  55. LEFT MOUSE key
  56. MEM PEEK offset var
  57. NEXT
  58. NEXT var
  59. NOCHK
  60. ON INTKEYn key GOTO label             {n=0 to 7}
  61. ON INTKEYn key GOSUB label            {n=0 to 7}
  62. ON var GOTO label1,label2,label3,label4
  63. ON var GOSUB label1,label2,label3,label4
  64. P@ row,col
  65. PCSR LIM
  66. PCSR LIM (row1,col1,row2,col2)
  67. PEEK buf (row,col) var var   
  68. PEEK buf (row,col) ASCII var 
  69. PEEK buf (row,col) ATTR var  
  70. PLAY "play text..."
  71. POKE buf (row,col) val val   
  72. POKE buf (row,col) ASCII val 
  73. POKE buf (row,col) ATTR val  
  74. POP  var         {e.g. POP 0}
  75. POP  var-var     {e.g. POP 0-255 or POP 255-0}
  76. PORT IN port var
  77. PRINT "text........."
  78. PRINT "text.........";
  79. PRINT CHAR(val)
  80. PRINT CHAR(val);
  81. PRINT var,format                {characters in format= 1 to 9 L Z O Q }
  82. PRINT var,format;               {characters in format= 1 to 9 L Z O Q }
  83. PUSH var         {e.g. PUSH 0 or PUSH V0} letter V is optional
  84. PUSH var-var     {e.g. PUSH 0-255 or PUSH 255-0}
  85. RESTART
  86. RESTORE fade
  87. RET                    {use with GOSUB}
  88. RETURN                 {same as RET}
  89. RIGHT MOUSE key
  90. RST K
  91. RST S            {one value at a time}
  92. RST Tn           {n=0 to 15}
  93. RST TS           {resets all timerS}
  94. SAVE
  95. SCREENSAVER minutes                  {use minutes=0 to disable}
  96. SCROLL DOWN (row1,col1,row2,col2)
  97. SCROLL UP (row1,col1,row2,col2)
  98. SELECT CASE ... CASE ... CASE ELSE ... END SELECT
  99. system variables [info]                   {where info is Tn or ...}
  100.                  [RND num TO num]
  101. TTYPE "text......"
  102. TTYPE "text......";
  103. var=val
  104. var++
  105. var--
  106. var=val+val
  107. var=val-val
  108. var=val*val
  109. var=val/val
  110. var=val&val     {same as var=val AND val}
  111. var=val@val     {same as var=val OR val}
  112. var=val#val     {same as var=val XOR val}
  113. VIRTUAL val
  114. WAIT ticks
  115. WAITKEY
  116. WAITKEY ticks
  117. WAITKEY ticks,label
  118. WHILE ... WEND
  119. WINDOW (row1,col1,row2,col2) window_type        {use current colors}
  120. XFLOAD "filename.txt"
  121. XFSAVE "filename.txt"
  122. $(buf,row,startcolumn,endcolumn)    {used with PRINT,TTYPE,PLAY,XFLOAD,XFSAVE}
  123.  
  124. !  can be used in place of the word PRINT    { e.g.  !"hello world"    }
  125. !! can be used in place of the word TTYPE    { e.g. !!"bon jour monde" }
  126. ?  can be used in place of the word INPUT    { e.g. ?V1(1,15,25,31)    }
  127.  
  128. Notes:
  129.  
  130. "key" is a specified key on the keyboard. note SHIFT CTRL ALT can be used
  131.       but not simultaneously.
  132.  
  133. "label" is a program label. the (:) is not specified here.
  134.  
  135. "num" is a number
  136.  
  137. "val"  is either a number (0 to 255)
  138.        or a variable (V0 to V255)--------------> V(0) to V(255)
  139.        or an indexed variable (VV0 to VV255)---> V(V(0)) to V(V(255))
  140.  
  141. "var"  is either a variable  (V0 to V255) -----> V(0) to V(255)
  142.        or an indexed variable (VV0 to VV255)---> V(V(0)) to V(V(255))
  143.  
  144. Other required data fields can usually be numbers, variables
  145. or indexed variables.
  146. Variables can be of the following types:  V7   %TEMP   VV4   V%MISC 
  147.  
  148.