home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / BEEHIVE / ZSUS / Z3HELP-5.LBR / T.LBR / TP3.HZP / TP3.HLP
Text File  |  2000-06-30  |  12KB  |  210 lines

  1. :
  2.                               Reserved Words - 1/11                          
  3.  
  4. Reserved Words:     Where to find:
  5. absolute            Identifiers and Types
  6. and                 Operators
  7. array               Internal Representation, 
  8. begin               Procedures and Functions
  9. case                Not discussed,however,an extention allows use of Else case
  10. const               Constants, Overlays
  11. div                 Operators
  12. do                  Part of looping constructs, Not discussed (cf Wirth)
  13. downto              Part of FOR construct, Not discussed (cf Wirth)
  14. else                Not discussed, also used as an extention to Case construct 
  15. end                 Procedures and Functions
  16. external            Assembly Routines,
  17. file                Standard File I/O
  18. forward             Procedures and Functions
  19. for                 Iterative looping construct, Not discussed (cf Wirth)
  20. function            Procedures and Functions, Internal Representation
  21.                               Reserved Words - 2/11                          
  22.  
  23. goto                Identifiers and Types
  24. inline              Assembly Routines
  25. if                  Conditional construct, Not discussed (cf Wirth)
  26. in                  Operators
  27. label               Identifiers and Types, Overlays
  28. mod                 Operators
  29. nil                 Predefined variables
  30. not                 Operators
  31. overlay             Overlays
  32. of                  Part of Case construct, Not discussed (cf Wirth)
  33. or                  Operators
  34. packed              Nop in Turbo Pascal, Not discussed
  35. procedure           Procedures and Functions, Internal Representation
  36. program             Procedures and Functions
  37. record              Identifiers and Types
  38. repeat              Looping construct, Not discussed (cf Wirth)
  39.                               Reserved Words - 3/11                          
  40.  
  41. set                 Basic Data Types
  42. shl                 Operators
  43. shr                 Operators
  44. string[]            Basic Data Types
  45. then                Part of conditional construct, Not discussed (cF Wirth)
  46. type                Basic Data Types, Type Conversion, Identifiers and Types
  47. to                  Part of FOR construct, Not discussed (cF Wirth)
  48. until               Part of REPEAT construct, Not discussed (cF Wirth)
  49. var                 Identifiers and Types
  50. while               Looping construct, Not discussed (cF Wirth)
  51. with                Not discussed (cF Wirth)
  52. xor                 Operators
  53.                               Reserved Words - 4/11                          
  54.  
  55.      Listed below are all of the built in functions,  with a short description 
  56. of  their use.   Below is a list of definitions to identify the types  of  the 
  57. parameters in question.
  58.  
  59. Definitions:
  60. ______________________________________________________________________________
  61. C is a character
  62. BC is either a byte or a character
  63. S is a String
  64. I is an Integer
  65. N is a numerical variable; either Real or Integer
  66. O is a scalar variable; i.e: ordinal (Integer, Byte, userdefined types)
  67. B is a boolean
  68. F is a general purpose file
  69. V is any basic data type
  70. P is a pointer to any data type
  71. T is a basic data type or user defined type variable
  72. TYP is any defined type, or variable of such a type
  73. TXT is a Text only file
  74.                               Reserved Words - 5/11                          
  75.  
  76. Reserved functions:
  77. ______________________________________________________________________________
  78. Abs(N):N                 Absolute value to same type as argument
  79. Addr(T):I                Return address of variable, field or array member
  80. ArcTan(N):R              Arc Tangent in radians
  81. Assign(F,S)              Assign a file variable to a name
  82. Aux                      Pre opened file (modem)
  83. AuxInPtr                 Pointer to routine used by Aux
  84. AuxOutPtr                Pointer to routing used by Aux
  85. Bdos(I1{,I2}){:I}        Call Bdos with C=I1, DE=I2 returning I=A
  86. BdosHL(I1{,I2}):I        Call Bdos with C=I1, DE=I2 returning I=HL
  87. Bios(I1{,I2}){:I}        Call Bios routine I1 with BC=I2 returning I=A
  88. BiosHL(I1{,I2}):I        Call Bios routine I1 with BC=I2 reutrning I=HL
  89. BlockRead(F,T,I{,I2})    Read I records from F into variable T, I2=no. x-fer
  90. BlockWrite(F,T,I{,I2})   Write I records to F from variable T,I2=xfer # succes
  91. Boolean                  Basic data type
  92. BufLen                   Temporary change of input buffer length
  93. Byte                     Subrange of Integers
  94. Chain(F)                 Move control to a .CHN file assn'd to F
  95.                               Reserved Words - 6/11                          
  96.  
  97. Char                     Ascii character type
  98. Chr(I):C                 Returns ascii equivalent of byte I
  99. Close(F)                 Deallocate buffer, and close file
  100. ClrEOL                   Display control string
  101. ClrScr                   Display control string
  102. Con                      Predefined file
  103. ConInPtr                 Pointer to procedure used by Con device
  104. ConOutPtr                Pointer to procedure used by Con device
  105. Concat(S,S,...):S        Concatenate strings (also '+')
  106. ConstPtr                 Pointer to Console status function
  107. Copy(S,I,I):S            Return substring starting at I which is I chars long
  108. Cos(N):R                 Cosine of N in radians
  109. CrtExit                  Deinitialization string
  110. CrtInit                  Initialization string
  111. DelLine                  Display control string
  112. Delay(I)                 Delay I milliseconds
  113. Delete(S,I1,I2)          Deletes the substring of S from I1 to I1+I2
  114. Dispose(P)               Deallocate Heap (w/ New)
  115. EOF(F):B                 End of file (true or false) (q.v: 
  116.                               Reserved Words - 7/11                          
  117.  
  118. EOLN(TXT):B              End of line
  119. Erase(F)                 Deletes file from directory
  120. Execute(F)               Move control to a .COM program assn'd to F
  121. Exit                     Break from current routine
  122. Exp(N):R                 Returns natural exponent of N
  123. False                    Logical constant for booleans
  124. FilePos(F):I             Return current block of file (not TEXT)
  125. FileSize(F):I            Return total number of blocks (not TEXT)
  126. FillChar(T,I,BC)         Change I bytes at variable T to byte BC
  127. Flush(F)                 Empty internal buffer to file
  128. Frac(N):R                Returns the fractional part of N as a real.
  129. FreeMem(P,I)             Release I bytes of Heap (w/ GetMem)
  130. GetMem(P,I)              Allocate I bytes of Heap (esp. Variants (w/FreeMem))
  131. GotoXY(I,I)              Horizontal, Vertical ((1,1) top left)
  132. Halt                     Stop program, return to CP/M
  133. HeapPtr                  Pointer to current Heap (cF: The Heap and The Stacks)
  134. Hi(I):I                  Returns high order byte of I
  135. IOResult                 Result of previous file operation
  136. Input                    Pre opened file for standard input
  137.                               Reserved Words - 8/11                          
  138.  
  139. InsLine                  Display control string
  140. Insert(S1,S2,I)          Insert S2 into S1 at position I of S1
  141. Int(N):R                 Returns integer part of N as a real
  142. Integer                  Basic data type
  143. Kbd                      Pre opened file to the keyboard
  144. KeyPressed:B             Returns True if a key has been pressed but not read
  145. Length(S):I              Returns the current length of string S
  146. Ln(N):R                  Natural logarithm
  147. Lo(I):I                  Returns Low order byte of I
  148. LowVideo                 Set display attribute
  149. Lst                      Pre opened file (printer) 
  150. LstOutPtr                Pointer to routine used by Lst
  151. Mark(P)                  Allocate heap (w/Release)
  152. MaxAvail:I               Returns size of largest chunk of memory on Heap
  153. MaxInt                   Integer maximum value (signed 32767)
  154. Mem[]                    Predefined array of all main memory
  155. MemAvail:I               Total available space on Heap (unsigned)
  156. Move(T,T,I)              Move bytes from variable to variable w/ overlap
  157. New(P)                   allocate heap (omit variant records (w/ Dispose))
  158.                               Reserved Words - 9/11                          
  159.  
  160. NormVideo                Normalize display attributes
  161. Odd(I):B                 True if I is odd, False otherwize
  162. Ord(O):I                 Change Ordinal type to integer (also Pointers!)
  163. Output                   Predefined file standard output
  164. OvrDrive(N:integer)      Set overlay drive to drive N. 
  165. ParamCoun:I              Number of parameters from cmd line
  166. ParamStr(I):S            Returns I'th paramater from cmd line
  167. Pi                       Variable contains approximate value of Pi.
  168. Port[]                   Predefined array of Z80 ports
  169. Pos(S1,S2):I             Find the first occurence of S1 in S2.
  170. Pred(O):O                Return predecessor of an ordinal in same type
  171. Ptr(I):P                 Change integer to pointer
  172. Random:R                 Returns a pseudo-random real in the range (0..1]
  173. Random(I):I              Returns a pseudo-random integer in (0..I-1)
  174. Randomize                Initialize random number generator
  175. Read(F,T)                Read from a file (See Standard file I/O)
  176. ReadLn(TXT,V)            Read from file to end of line (See Standard file I/O)
  177. Real                     Basic data type (q.q.v.)
  178. RecurPtr                 Recursion stack pointer(cF: The Heap and The Stacks)
  179.                               Reserved Words - 10/11                         
  180.  
  181. Release(P)               Release heap storage from P downward (w/ Mark)
  182. Rename(F,S)              Rename an assigned file to string
  183. Reset(F)                 Opens an assigned file for reading
  184. Rewrite(F)               Opens an assigned file for writing
  185. Round(R):I               Returns Real truncated to an integer
  186. Seek(F,I)                Seeks Ith component of(0..Len)(ie:1 past end)(om TXT)
  187. Sin(N):R                 Sine function in radians
  188. SizeOf(TYP):I            Return bytes rq'd for storage of var or type
  189. SeekEof(TXT):B           Return True if only spaces and tabs before EOF
  190. SeekEoln(TXT):B          Return True if only spaces or tabs before EOLN
  191. Sqr(R):R                 Real square of a Real 
  192. Sqrt(R):R                Real square root of a Real
  193. StackPtr                 Pointer to CPU stack (cF: The Heap and the Stacks)
  194. Str(N,S)                 Numeric to String (See String Related Routines)
  195. Succ(O):O                Ordinal successor of a scalar
  196. Swap(I):I                Swap hi and lo bytes of an Integer
  197. Text                     type of file (FILE of CHAR)           
  198. Trm                      Predefined file (see Predefined Files)
  199. True                     Logical TRUE for booleans
  200.                               Reserved Words - 11/11                         
  201.  
  202. Trunc(R):I               Returns truncated integer of R
  203. UpCase(C):C              Makes lowercase characters into uppercase
  204. Usr                      Predefined file (see Predefined Files)
  205. UsrInPtr                 Pointer to UsrIn (See User Written I/O Drivers)
  206. UsrOutPtr                Pointer to UsrOut (See User Written I/O Drivers)
  207. Val(S,N,I)               String to numeric (Cf: String Related Routines)
  208. Write(F,T)               Output (See Standard file I/O)
  209. Writeln(TXT,V)           Output with linefeed (See Standard file I/O)
  210.