home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / ref / rcmap2.100 < prev    next >
Text File  |  2006-10-19  |  14KB  |  500 lines

  1.  
  2.  
  3.                      ------------------------
  4.                      | Model 100 System Map |
  5.                      ------------------------
  6. ROM: Part II
  7.                           Copyright 1985
  8.                      Revision Date: 09/30/85
  9.                    Compiled and Researched by:
  10.                        Robert D. Covington
  11.             Systems Information Management Consultants
  12.       [Not associated with The Covington Group, N. Y., N. Y.]
  13.  
  14.     This document may be duplicated and distributed free of
  15. charge to any individuals who desire it.  Any duplications of
  16. this document, however, must inluce all of the information
  17. contained here-in, with no deletions or changes.
  18.     The author and distributors of this document make no 
  19. expressed or implied warrantees as to the validity of the 
  20. information contained here in.
  21.  
  22.  
  23. 0DABH -  Main Evaluation Routine.  This routine handles all 
  24.         evaluations of math operations and functions.
  25.          Entry:
  26.                HL - Points to text to evaluate plus 1.  This routine 
  27.                     assumes that an RST 10H was executed prior to 
  28.                     entering the routine.  To adjust for this, either 
  29.                     execute a RST 10H or INC HL prior to entering the 
  30.                     routine.
  31.          Exit:
  32.                HL - Incremented past evaluated expression
  33.              FAC1 - Usually contains the result of the evaluated 
  34.                     expression.
  35.  
  36. 0F0DH -  Integer Divide (FAC1=DE/HL)
  37.  
  38. 0F1CH -  Evaluate the function in the buffer pointed to by HL.
  39.          Entry:
  40.                HL - Points to the buffer containing the compressed 
  41.                     function and parameters.
  42.          Exit:
  43.              FAC1 - Usually contains the result of the function.
  44.  
  45. 0F47H -  ERR Function
  46.  
  47. 0F56H -  ERL Function
  48.  
  49. 0F7EH -  VARPTR Function
  50.  
  51. 0F86H -  VARPTR(#buffer) Function
  52.  
  53. 0F92H -  VARPTR(variable) Function
  54.  
  55. 0FDAH -  Variable evaluation routine
  56.  
  57. 0FE8H -  Get the character pointed to by HL, convert it to upper case 
  58.         if needed, and place it in the A register.
  59.          Entry:
  60.                HL - Points to buffer
  61.          Exit:
  62.                 A - Next character in buffer
  63.  
  64. 0FE9H -  Convert the character in the A register to uppercase if 
  65.         necessary.
  66.          Entry:
  67.                 A - Character
  68.          Exit:
  69.                 A - Character converted to UC
  70.  
  71. 1054H -  NOT Function
  72.  
  73. 1069H -  RST 28H routine (see 28H).
  74.  
  75. 108CH -  OR Function
  76.  
  77. 1097H -  AND Function
  78.  
  79. 10A2H -  XOR Function
  80.  
  81. 10ADH -  EQV Function
  82.  
  83. 10B5H -  IMP Function
  84.  
  85. 10C8H -  LPOS Function
  86.  
  87. 10CEH -  POS Function
  88.  
  89. 10D1H -  Load the integer in the A register into FAC1.
  90.          Entry:
  91.                 A - Integer from 0-255 to put in FAC1
  92.          Exit:
  93.                 A - Destroyed
  94.  
  95. 10E6H -  Check for a running program.  If a program is not running, 
  96.         generate an Illegal Direct (ID) error.
  97.          Exit:
  98.                 A - Destroyed
  99.            Z flag - Reset if program is running
  100.  
  101. 10EFH -  Generate ID error
  102.  
  103. 1100H -  INP Function
  104.  
  105. 110CH -  OUT Statement
  106.  
  107. 1112H -  Evaluate the expression in the buffer pointed to by HL 
  108.         leaving the result in DE.  If the result is greater than 
  109.         32767, an overflow error is generated.
  110.          Entry:
  111.                HL - Points to buffer of expression to evaluate.  The 
  112.                     buffer must end with a null or colon.
  113.          Exit:
  114.                DE - Result of expression
  115.                HL - Incremented past expression in buffer
  116.                 A - Destroyed
  117.            Z flag - Set if the evaluated expression is an 8 bit 
  118.                     number.  If so, the result of the operation will 
  119.                     be just in the E register.
  120.  
  121. 1113H -  Same as 1112H except that the evalutation starts at HL-1.
  122.  
  123. 112DH -  Evaluate the expression in the buffer pointed to by HL 
  124.         leaving the result in the A register.  If the result is 
  125.         greater than 255, a function error is generated.  If the 
  126.         result is greater than 32767, an overflow error is generated.
  127.          Entry:
  128.                HL - Points to buffer to be evaluated.  The buffer 
  129.                     must end with a null or colon.
  130.          Exit:
  131.                HL - Incremented past expression in buffer
  132.             A & E - Evaluated expression
  133.                 D - Destroyed
  134.  
  135. 112EH -  Same as 112DH except that evaluation starts at HL-1.
  136.  
  137. 113BH -  LLIST Statement
  138.  
  139. 1140H -  LIST Statement
  140.  
  141. 11A2H -  Send the buffer pointed to by HL to the screen.  Text must 
  142.         end with a null.
  143.          Entry:
  144.                HL - Points to print buffer
  145.          Exit:
  146.                HL - Points to ending null
  147.                 A = 0
  148.  
  149. 1284H -  PEEK Function
  150.  
  151. 128BH -  POKE Function
  152.  
  153. 1297H -  Evaluate the expression in the buffer pointed to by HL 
  154.         leaving the result in DE.  This routine differs from 1112H in 
  155.         that it will properly evaluate numbers up to 65535.  If the 
  156.         result of the operation is greater than 65535, an overflow 
  157.         error will occur.
  158.          Entry:
  159.                HL - Points to buffer to evaluate.  The buffer must 
  160.                     end with a null or colon.
  161.          Exit:
  162.                DE - Evaluated expression
  163.                HL - Incremented past expression in buffer.
  164.  
  165. 12CBH -  Wait for a key from the keyboard.  All function keys are 
  166.         converted into their pre-programmed text.
  167.          Exit:
  168.                 A - Character entered
  169.            C flag - Set if special character
  170.  
  171. 13A5H -  Toggle function key label line if enabled.
  172.          Exit:
  173.                 A - Destroyed
  174.  
  175. 13DBH -  Check keyboard queue for pending characters
  176.          Exit:
  177.                 A - Destroyed
  178.            Z flag - Set if no characters pending
  179.  
  180. 1419H -  POWER Statement
  181.  
  182. 1431H -  Normal TRAP (low power) interrupt routine
  183.  
  184. 143FH -  Turn off computer
  185.  
  186. 1459H -  POWER CONT Statement
  187.  
  188. 1461H -  POWER ON Statement
  189.  
  190. 1470H -  Output character to printer without tab expansions
  191.          Entry:
  192.                 A - Character to print
  193.  
  194. 148AH -  Start tape and load tape header.  If an error or Shift Break 
  195.         is pressed, generate an I/O error.
  196.  
  197. 1494H -  Generate I/O error
  198.  
  199. 14A8H -  Turn cassette motor on
  200.  
  201. 14AAH -  Turn cassette motor off
  202.  
  203. 14B0H -  Read a byte from tape and update checksum
  204.          Entry:
  205.                 C - Current checksum
  206.          Exit:
  207.                 A - Character read off tape
  208.                 C - Updated checksum
  209.  
  210. 14C1H -  Write a byte to tape and update checksum
  211.          Entry:
  212.                 A - Character to write to tape
  213.                 C - Current checksum
  214.          Exit:
  215.                 C - Updated checksum
  216.  
  217. 14D2H -  LCD Device control block
  218.  
  219. 14D8H -  LCD and LPT file open routine
  220.  
  221. 14E5H -  LCD file output routine
  222.   
  223. 14EDH -  Pop all registers off stack in the order AF, BC, DE, and HL.  
  224.         This routine is only useful if jumped to.  If a call is done, 
  225.         stack integrity is lost.
  226.  
  227. 14F2H -  CRT device control block
  228.  
  229. 14FCH -  RAM device control block
  230.  
  231. 1506H -  RAM file open routine
  232.  
  233. 158DH -  RAM file close routine
  234.  
  235. 15ACH -  RAM file output routine
  236.  
  237. 15C4H -  RAM file input routine
  238.  
  239. 161BH -  Special RAM file I/O
  240.  
  241. 167FH -  CAS device control block
  242.  
  243. 1689H -  CAS file open routine
  244.  
  245. 16ADH -  CAS file close routine
  246.  
  247. 16C7H -  CAS file output routine
  248.  
  249. 16D2H -  CAS file input routine
  250.  
  251. 1754H -  LPT device control block
  252.  
  253. 175AH -  LPT file output routine
  254.  
  255. 1762H -  COM device control block
  256.  
  257. 176CH -  MDM file open routine
  258.  
  259. 176DH -  COM file open routine
  260.  
  261. 179EH -  COM file close routine
  262.  
  263. 17A8H -  COM and MDM file output routine
  264.  
  265. 17B0H -  COM and MDM file input routine
  266.  
  267. 17CAH -  Special COM and MDM I/O routine
  268.  
  269. 17D1H -  MDM device control block
  270.  
  271. 17D8H -  MDM file close routine
  272.  
  273. 17E6H -  Set RS232 parameters to string pointed to by HL.  String must 
  274.         be in the same format as used by TELCOM.
  275.          Entry:
  276.                HL - Points to parameter string
  277.                 D - 2 if Modem is used
  278.            C flag - Set if RS232, reset of Modem
  279.  
  280. 1877H -  WAND device control block
  281.  
  282. 1889H -  EOF Function
  283.  
  284. 1904H -  TIME$ Function
  285.  
  286. 190FH -  Read time from system clock and store it in the buffer 
  287.         pointed to by HL
  288.          Entry:
  289.                HL - Points to start of time buffer.  The buffer will 
  290.                     be filled with the time in the format hh:mm:ss.
  291.          Exit:
  292.                HL - Incremented to the end of the buffer.
  293.                All other registers destroyed
  294.  
  295. 1924H -  DATE$ function
  296.  
  297. 192FH -  Read date and store it in the buffer pointed to by HL.
  298.          Entry:
  299.                HL - Points to start of date buffer.  The buffer will 
  300.                     be filled with the date in the format mm/dd/yy.
  301.          Exit:
  302.                HL - Incremented to the end of the buffer
  303.                All other registers destroyed
  304.  
  305. 1955H -  DAY$ function
  306.  
  307. 1962H -  Read day and store it in the buffer pointed to by HL.
  308.          Entry:
  309.                HL - Points to start of day buffer.  The buffer will 
  310.                     be filled with the current 3 letter day 
  311.                     abbreviation.
  312.          Exit:
  313.                HL - Incremented to the end of the buffer
  314.                All other registers destroyed.
  315.  
  316. 19A0H -  Update the in memory clock values starting at F923H with the 
  317.         time in the internal hardware clock
  318.  
  319. 19ABH -  TIME$ Statement
  320.  
  321. 19B3H -  Update the internal clock chip with the values in the in 
  322.         memory time table starting at F923H
  323.  
  324. 19BDH -  DATE$ Statement
  325.  
  326. 19F1H -  DAY$ Statement
  327.  
  328. 1A78H -  IPL Statement
  329.  
  330. 1A96H -  Erase current IPL program (table)
  331.          Exit:
  332.                 A - Destroyed
  333.  
  334. 1A9EH -  COM and MDM Statements
  335.  
  336. 1AB2H -  KEY() Statement
  337.  
  338. 1AC3H -  KEY STOP/ON/OFF Statements
  339.  
  340. 1B0FH -  ON TIME$ Statement
  341.  
  342. 1B32H -  RST 7.5 interrupt routine (see 3CH).
  343.  
  344. 1BB8H -  KEY Statement
  345.  
  346. 1BBDH -  KEY LIST Statement
  347.  
  348. 1BE0H -  Send B number of characters from the buffer pointed to by HL 
  349.         to the screen.  Any control characters (0-31 and 127) are 
  350.         converted to spaces for printing.
  351.          Entry:
  352.                HL - Points to buffer to print
  353.                 B - Number of characters to print
  354.          Exit:
  355.                 A - Destroyed
  356.                HL - Incremented past last byte printed.
  357.  
  358. 1C57H -  PSET Statement
  359.  
  360. 1C66H -  PRESET Statement
  361.  
  362. 1C6DH -  LINE (graphic) Statement
  363.  
  364. 1D90H -  CSRLIN Function
  365.  
  366. 1D9BH -  MAX Function
  367.  
  368. 1DA7H -  MAXRAM Function
  369.  
  370. 1DB2H -  MAXFILES Functions
  371.  
  372. 1DB9H -  HIMEM Function
  373.  
  374. 1DC3H -  WIDTH Statement
  375.  
  376. 1DC5H -  SOUND Statement
  377.  
  378. 1DE5H -  SOUND OFF Statement
  379.  
  380. 1DE6H -  SOUNF ON Statement
  381.  
  382. 1DECH -  MOTOR Statement
  383.  
  384. 1DF1H -  MOTOR ON Statement
  385.  
  386. 1DF5H -  MOTOR OFF Statement
  387.  
  388. 1DFAH -  CALL Statement
  389.  
  390. 1E22H -  SCREEN Statement
  391.  
  392. 1E5EH -  LCOPY Statement.  This routine will print the textual 
  393.         contents of the screen on the printer..
  394.          Exit:
  395.           HL, DE, and AF are destroyed.
  396.  
  397. 1F3AH -  FILES Statement
  398.  
  399. 1F42H -  Display Catalog
  400.          Exit:
  401.                All registers are destroyed
  402.  
  403. 1F91H -  KILL Statement
  404.  
  405. 1FBEH -  Kill a text file
  406.          Entry:
  407.                HL - Address of directory entry
  408.                DE - Start address of file
  409.  
  410. 2037H -  NAME Statement
  411.  
  412. 20FEH -  NEW Statement
  413.  
  414. 21FAH -  Count the number of characters in the buffer pointed to by 
  415.         HL. Buffer ends with a null
  416.          Entry:
  417.                HL - Points to the buffer to count
  418.          Exit:
  419.                 E - Number of characters in the buffer pointed to by 
  420.                     HL
  421.                 A - Destroyed
  422.  
  423. 220FH -  Open a text file
  424.          Entry:
  425.           (FC93H) - Filename (8 bytes).  DO not required
  426.          Exit:
  427.                HL - Points to start of text file
  428.                DE - Points to directory entry
  429.            C flag - Set if file already exist, reset if it is a new 
  430.                     file.
  431.  
  432. 2280H -  CSAVE Statement
  433.  
  434. 22B9H -  Save the buffer pointed to by HL to tape.  After execution of 
  435.         this routine, return resumes at BASIC ready.
  436.          Entry:
  437.                HL - Start of buffer to save
  438.                DE - Number of characters to save
  439.          Exit:
  440.                All registers destroyed
  441.  
  442. 22CCH -  SAVEM Statement
  443.  
  444. 22DDH -  CSAVEM Statement
  445.  
  446. 2377H -  CLOAD Statement
  447.  
  448. 2413H -  Load a record from the cassette and put it in the buffer 
  449.         pointed to by HL.
  450.          Entry:
  451.                HL - Points to start of receiving buffer
  452.                DE - Number of bytes to load.
  453.          Exit:
  454.                All registers destroyed
  455.  
  456. 2491H -  LOADM and RUNM Statement
  457.  
  458. 24A7H -  CLOADM Statement
  459.  
  460. 2542H -  Move memory pointed to by HL to the memory pointed to by DE 
  461.         for B number of bytes.  HL and DE are incremented on each 
  462.         cycle of the move.
  463.          Entry:
  464.                HL - Points to the start of the source memory
  465.                DE - Points to the start of the destination memory
  466.                 B - Number of bytes to move
  467.          Exit:
  468.           HL & DE - Incremented past last byte moved
  469.                 A - Destroyed
  470.  
  471. 260BH -  CAS open for output for BASIC files
  472.  
  473. 260EH -  CAS open for output for TEXT files
  474.  
  475. 2611H -  CAS open for output for Command files
  476.  
  477. 2650H -  CAS open for input for BASIC files
  478.  
  479. 2653H -  CAS open for input for text files
  480.  
  481. 2656H -  CAS open for input for Command files
  482.  
  483. 273AH -  STR$ Function
  484.  
  485. 27B1H -  Print buffer pointed to by HL until a null (00H) or '"' is 
  486.         found.  Print begins at current cursor position.
  487.          Entry:
  488.                HL - Points to buffer to be printed
  489.  
  490. 290FH -  Move the memory pointed to by BC to the memory pointed to by 
  491.         DE  L times.  BC and DE are incremented on each cycle of the 
  492.         move.
  493.          Entry:
  494.                BC - Points to the start of the source memory
  495.                DE - Points to the start of the destination memory
  496.                 L - Number of bytes to move
  497.          Exit:
  498.           HL & DE - Incremented past last byte moved
  499.                 A - Destroyed
  500.