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 / SIMTEL / CPMUG / CPMUG031.ARK / TBASIC.D2 < prev    next >
Text File  |  1984-04-29  |  1KB  |  65 lines

  1. INTERNAL FORMATS (continued)
  2.  
  3. String Array Pointer Format:
  4.   Byte 0:  bit 0-not used, bit 1=0, bit 2=0, bit 3=1, bit 4=0,
  5.        bit 5=0, bit 6=0 if not array,=1 if array, bit 7 not used.
  6.   Byte 1 = number of dimensions.
  7.   Bytes 2&3 is a pointer to string locator or string.
  8.   Bytes 4&5 are not used.
  9. String variables are treated internally as single dimension arrays.
  10.  
  11. Numeric Array Pointer Format:
  12.   Byte 0:  bit 0=0 if integer, 1 if floating point.
  13.        bit 1=0, bit 2=1, bit 3=0, bit 4=0, bit 5=0,
  14.            bits 6&7 are unused.
  15.   Byte 1 = number of dimensions.
  16.   Bytes 2&3 is a pointer to table location.
  17.   Bytes 4&5 are not used.
  18.  
  19. Numeric Format (constants and variables)
  20.   Byte 0:  bit 0=0 if integer, 1 if floating point.
  21.        bit 1=1, bit 2=0, bit 3=0, bit 4=0, bit 5=0,
  22.        bit 6 is sign of exponent, bit 7 sign of mantissa.
  23.   Byte 1 = BCD exponent if floating point, MSD, MSD-1 if integer.
  24.   Byte 2 = LSD+7, LSD+6
  25.   Byte 3 = LSD+5, LSD+4
  26.   Byte 4 = LSD+3, LSD+2
  27.   Byte 5 = LSD+1, LSD
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.                 D-2
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.