home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / ref / rcmap3.200 < prev    next >
Text File  |  2006-10-19  |  21KB  |  533 lines

  1.                    ----------------------------  
  2.                    | Model 100/200 System Map |  
  3.                    ---------------------------- 
  4.                            ROM: Part III  
  5.                           Copyright 1985  
  6.                      Revision Date: 09/30/85  
  7.                    Compiled and Researched by:  
  8.                        Robert D. Covington  
  9.             Systems Information Management Consultants  
  10.       [Not associated with The Covington Group, N. Y., N. Y.]  
  11.         Revised for the Tandy 200 by Chris De Herrera, 9/89 
  12.   
  13.     This document may be duplicated and distributed free of  
  14. charge to any individuals who desire it.  Any duplications of  
  15. this document, however, must include all of the information  
  16. contained here-in, with no deletions or changes.  
  17.     The author and distributors of this document make no   
  18. expressed or implied warrantees as to the validity of the   
  19. information contained here in.  
  20.   
  21. Hex Address  
  22. M100   M200      Description 
  23. -------------------------------------------------------------  
  24. 2943H       -  LEN Function  
  25.   
  26. 294FH       -  ASC Function  
  27.   
  28. 295FH       -  CHR$ Function  
  29.   
  30. 296DH       -  STRING$ Function  
  31.   
  32. 298EH       -  SPACE$ Function  
  33.   
  34. 29ABH       -  LEFT$ Function  
  35.   
  36. 29DCH       -  RIGHT$ Function  
  37.   
  38. 29E6H       -  MID$ Function  
  39.   
  40. 2A07H       -  VAL Function  
  41.   
  42. 2A37H       -  INSTR Function  
  43.   
  44. 2B4CH       -  FRE Function  
  45.   
  46. 2B69H       -  Double precision subtract (FAC1=FAC1-FAC2).  
  47.                Entry:  
  48.                   FAC1 - First double precision number  
  49.                   FAC2 - Second double precision number  
  50.                Exit:  
  51.                   FAC1 - Result of operation  
  52.                   All other registers destroyed  
  53.   
  54. 2B78H       -  Double precision addition (FAC1=FAC1+FAC2).  
  55.                Entry:  
  56.                   FAC1 - First double precision number  
  57.                   FAC2 - Second double precision number  
  58.                Exit:  
  59.                   FAC1 - Result of operation  
  60.                   All other registers destroyed  
  61.   
  62. 2C4FH       -  Add the BCD number in the buffer pointed to by HL to  
  63.                the BCD number in the buffer pointed to by DE leaving  
  64.                the result in the buffer pointed to by DE.  Since no  
  65.                decimals are significant, numbers must be padded with  
  66.                zeros for place holders.  B contains the precision  
  67.                (number of bytes) of the numbers added.  
  68.                Entry:  
  69.                   HL - Points to the end of the first BCD number buffer  
  70.                   DE - Points to the end of the second BCD number buffer  
  71.                   B - Number of bytes to add (2 times the number of   
  72.                       digits added)  
  73.                Exit:  
  74.                   HL & DE - Decremented past last byte of buffer  
  75.                   B = 0  
  76.                   A - Destroyed  
  77.   
  78. 2CFFH       -  Double precision multiply (FAC1=FAC1*FAC2)  
  79.                Entry:  
  80.                   FAC1 - First double precision number  
  81.                   FAC2 - Second double precision number  
  82.                Exit:  
  83.                   FAC1 - Result of operation  
  84.                   All other registers destroyed  
  85.   
  86. 2DC7H       -  Double precision divide (FAC1=FAC1/FAC2)  
  87.                Entry:  
  88.                   FAC1 - Double precision numerator  
  89.                   FAC2 - Double precision denominator  
  90.                Exit:  
  91.                   FAC1 - Result of operation  
  92.                   All other registers destroyed  
  93.  
  94. 2EDDH 3C55H -  ?
  95.   
  96. 2EE6H       -  Move the memory pointed to by HL to the memory pointed to by   
  97.                DE for C bytes.  HL and DE are decremented on each cycle of   
  98.                the move.  
  99.                Entry:  
  100.                   HL - Points to end of source memory  
  101.                   DE - Points to end of destination memory  
  102.                   C - Number of bytes to move  
  103.                Exit:  
  104.                   HL & DE - Decremented past last byte moved  
  105.                   A - Destroyed  
  106.   
  107. 2EEFH       -  COS Function  
  108.                Entry:  
  109.                   FAC1 - Angle in radians  
  110.                Exit:  
  111.                   FAC1 - Result of COSine  
  112.   
  113. 2F09H       -  SIN Function  
  114.                Entry:  
  115.                   FAC1 - Angle in radians  
  116.                Exit:  
  117.                   FAC1 - Result of SINe  
  118.   
  119. 2F58H       -  TAN Function  
  120.                Entry:  
  121.                   FAC1 - Angle in radians  
  122.                Exit:  
  123.                   FAC1 - Result of TANgent  
  124.   
  125. 2F71H       -  ATN Function  
  126.                Entry:  
  127.                   FAC1 - TANgent value  
  128.                Exit:  
  129.                   FAC1 - Angle in radians  
  130.   
  131. 2FCFH       -  LOG Function  
  132.                Entry:  
  133.                   FAC1 - LOG value  
  134.                Exit:  
  135.                   FAC1 - Result of LOG  
  136.   
  137. 305AH       -  SQR Function  
  138.                Entry:  
  139.                   FAC1 - Number to find square root of  
  140.                Exit:  
  141.                   FAC1 - Square root of number  
  142.   
  143. 30A4H       -  EXP Function  
  144.                Entry:  
  145.                   FAC1 - Value for EXP  
  146.                Exit:  
  147.                   FAC1 - Natural exponent result  
  148.   
  149. 313EH       -  RND Function  
  150.   
  151. 31A0H       -  Double precision square of FAC1 (FAC1=FAC1 squared)  
  152.                Entry:  
  153.                   FAC1 - Double precision number to square  
  154.                Exit:  
  155.                   FAC1 - Result of FAC1 squared  
  156.                   All other registers destroyed  
  157.   
  158. 31B5H       -  Move FAC1 to FAC2  
  159.                Exit:  
  160.                   All registers destroyed  
  161.   
  162. 31B8H       -  Move the floating point buffer pointed to by HL to FAC2.  
  163.                Entry:  
  164.                   HL - Points to 8 byte floating point buffer  
  165.                Exit:  
  166.                   All registers destroyed  
  167.   
  168. 31C1H       -  Move FAC2 to FAC1  
  169.                Exit:  
  170.                   All registers destroyed  
  171.   
  172. 31C4H       -  Move the 8 byte floating point accumulator pointed to by HL   
  173.                to FAC1  
  174.                Entry:  
  175.                   HL - Points to start of source memory  
  176.                Exit:  
  177.                   All registers destroyed  
  178.   
  179. 31CAH       -  Move FAC1 to the 8 byte floating point accumulator pointed to  
  180.  
  181.                by HL.  
  182.                Entry:  
  183.                   HL - Points to start of buffer for FAC1  
  184.                Exit:  
  185.                   All registers destroyed  
  186.   
  187. 322EH       -  Push FAC2 on stack  
  188.                Exit:  
  189.                   All registers destroyed  
  190.   
  191. 3234H       -  Push FAC1 on stack  
  192.                Exit:  
  193.                   All registers destroyed  
  194.   
  195. 3245H       -  Pop FAC2 off stack  
  196.                Exit:  
  197.                   FAC2 - Floating point value POPed off stack  
  198.                   All registers destroyed  
  199.   
  200. 324BH       -  Pop FAC1 off stack  
  201.                Exit:  
  202.                   FAC1 - Floating point value POPed off stack  
  203.                   All registers destroyed  
  204.   
  205. 33DCH       -  RST 30H routine  
  206.   
  207. 33F2H       -  ABS Function  
  208.   
  209. 3407H       -  SGN Function  
  210.   
  211. 3422H       -  PUSH the single precision value in FAC1 onto the stack  
  212.                Exit:  
  213.                   DE - Destroyed  
  214.   
  215. 342FH       -  Load the 4 byte number pointed to by HL into FAC1.  The   
  216.                buffer pointed to by HL reverses the two words prior to   
  217.                storing them into FAC1  
  218.                Entry:  
  219.                   HL - 4 byte number that will be put in FAC1 in reverse   
  220.                        order  
  221.                Exit:  
  222.                   HL - Incremented past last byte moved  
  223.                   All other registers destroyed  
  224.   
  225. 3432H       -  Load the single precision value in BCDE into FAC1  
  226.                Entry:  
  227.                   BCDE - Single precision number  
  228.                Exit:  
  229.                   BC & DE destroyed  
  230.   
  231. 343DH       -  Load the single precision value in FAC1 into BCDE  
  232.                Exit:  
  233.                   BCDE - Single precision number from FAC1  
  234.                   HL - Destroyed  
  235.   
  236. 3447H       -  Load 4 byte single precision buffer pointed to by HL into   
  237.                BCDE.  
  238.                Entry:  
  239.                   HL - Points to the buffer containing the 4 byte single   
  240.                        precision number  
  241.                Exit:  
  242.                   BCDE - Floating point number that is in the buffer   
  243.                          pointed to by HL  
  244.   
  245. 3450H 41A1H -  Load the 4 byte number pointed to by HL into DEBC (note   
  246.                reverse order!!).  
  247.                Entry:  
  248.                   HL - Points to the buffer containing the 4 byte single   
  249.                        precision number  
  250.                Exit:  
  251.                   DEBC - Floating point number that is in the buffer   
  252.                          pointed to by HL  
  253.  
  254. 3457H 41A8H - ?
  255.   
  256. 3459H       -  Move the single precision floating point number in FAC1 to   
  257.                the buffer pointed to by HL.  
  258.                Entry:  
  259.                   HL - Points to destination buffer for single precision   
  260.                     FAC1 (4 bytes)  
  261.                Exit:  
  262.                   HL - Incremented past last byte moved  
  263.                   DE - Destroyed  
  264.                   B - Destroyed  
  265.   
  266. 3461H       -  Move the buffer pointed to by HL to FAC2.  The number of   
  267.                bytes transfered depends on the current precision in FB65H.  
  268.                Entry:  
  269.                   HL - Points to source buffer for floating point number  
  270.                Exit:  
  271.                   HL - Incremented past last byte transfered  
  272.                   All other registers destroyed  
  273.   
  274. 3469H 41BAH -  Move the memory pointed to by DE to the memory pointed to by   
  275.                HL for B number of bytes.  HL and DE are incremented on each   
  276.                byte moved.  
  277.                Entry:  
  278.                   DE - Points to start of source memory  
  279.                   HL - Points to start of destination memory  
  280.                   B - Number of bytes to move  
  281.                Exit:  
  282.                   HL & DE - Incremented past last byte transfered  
  283.                   A & B - Destroyed  
  284.   
  285. 3472H 41C3H -  Move the memory pointed to by DE to the memory pointed to by   
  286.                HL for B number of bytes.  HL and DE are decremented on each   
  287.                byte moved.  
  288.                Entry:  
  289.                   DE - Points to end of source memory  
  290.                   HL - Points to end of destination memory  
  291.                   B - Number of bytes to move  
  292.                Exit:  
  293.                   HL & DE - Decremented past the last byte transfered  
  294.                   A & B - Destroyed  
  295.   
  296. 3498H       -  Compare the single precision number in BCDE with FAC1.  
  297.                Entry:  
  298.                   BCDE - First single precision number  
  299.                   FAC1 - Second single precision number  
  300.                Exit:  
  301.                   HL - Destroyed  
  302.                   A = 255 (-1) if BCDE>FAC1  
  303.                       1 if BCDE<FAC1  
  304.                       0 if BCDE=FAC1  
  305.                   Z flag - Set if BCDE=FAC1  
  306.                   S flag - Set (M) if BCDE>FAC1  
  307.   
  308. 34C2H       -  Compare the signed integer in DE to the signed integer in HL.  
  309.                Entry:  
  310.                   HL - First integer to compare  
  311.                   DE - Second integer to compare  
  312.                Exit:  
  313.                   A = 255 (-1) if DE>HL  
  314.                       1 if DE<HL  
  315.                       0 if DE=HL  
  316.                   Z flag - Set if DE=HL  
  317.                   S flag - Set (M) if DE>HL  
  318.   
  319. 34FAH       -  Compare the double precision number in FAC1 to the double   
  320.                precision number in FAC2.  
  321.                Entry:  
  322.                   FAC1 - First double precision value to compare  
  323.                   FAC2 - Second double precision value to compare  
  324.                Exit:  
  325.                   A = 255 (-1) if FAC1>FAC2  
  326.                       1 if FAC1<FAC2  
  327.                       0 if FAC1=FAC2  
  328.                   Z flag - Set if FAC1=FAC2  
  329.                   S flag - Set (M) if FAC1>FAC2  
  330.   
  331. 3501H       -  CINT Function.  Convert floating point number in FAC1 to an   
  332.                integer.  
  333.                Entry:  
  334.                   FAC1 - Floating point number to convert  
  335.                Exit:  
  336.                   HL - Converted signed integer in FAC1  
  337.                   FAC1 - Converted to an integer  
  338.   
  339. 3510H       -  Load the signed integer in HL into FAC1  
  340.                Entry:  
  341.                   HL - Signed integer to put in FAC1  
  342.                Exit:  
  343.                   A = 2  
  344.   
  345. 352AH       -  CSNG Function. Convert the number in FAC1 to a single   
  346.                precision value.  
  347.                Entry:  
  348.                   FAC1 - Number to convert  
  349.                Exit:  
  350.                   FAC1 - Converted single precision number  
  351.   
  352. 3540H       -  Convert the signed integer in FAC1 to single precision.  
  353.                Entry:  
  354.                   FAC1 - Contains signed integer to convert  
  355.                Exit:  
  356.                   FAC1 - Converted single precision number  
  357.   
  358. 3543H       -  Convert the signed integer in HL to a single precision number  
  359.  
  360.                in FAC1.  
  361.                Entry:  
  362.                   HL - Contains signed integer to convert  
  363.                Exit:  
  364.                   FAC1 - Converted single precision number  
  365.   
  366. 35BAH       -  CDBL function.  Convert the number in FAC1 to a double   
  367.                precision floating point number.  
  368.                Entry:  
  369.                   FAC1 - Number to convert to double precision  
  370.                Exit:  
  371.                   FAC1 - Converted double precision number  
  372.   
  373. 3645H       -  FIX Function  
  374.   
  375. 3654H       -  INT Function.  Find the integer portion of the floating point  
  376.  
  377.                number in FAC1.  
  378.                Entry:  
  379.                   FAC1 - Floating point number  
  380.                Exit:  
  381.                   FAC1 - Integer portion of floating point number  
  382.   
  383. 36F8H 444CH -  Subtract the signed integer in HL from the signed integer in   
  384.                DE.  
  385.                Entry:  
  386.                   HL - First number to subtract  
  387.                   DE - Second number to subtract  
  388.                Exit:  
  389.                   FAC1 - Result of subtract  
  390.                   HL - Integer result of subtract  
  391.   
  392. 3704H       -  Add the signed integer in HL to the signed integer in DE.  If  
  393.  
  394.                the result is greater than 32767, the result is converted   
  395.                into single precision.  
  396.                Entry:  
  397.                   HL - First number to add  
  398.                   DE - Second number to add  
  399.                Exit:  
  400.                   FAC1 - Result of addition  
  401.                   HL - Integer result of addition  
  402.   
  403. 3725H 4479H -  Multiply the signed integer in HL by the signed integer in   
  404.                DE.  If the result is greater than 32767, the result is   
  405.                converted into single precision.  
  406.                Entry:  
  407.                   HL - First integer to multiply  
  408.                   DE - Second integer to multiply  
  409.                Exit:  
  410.                   FAC1 - Result of multiplication  
  411.                   HL - Integer result of multiplication  
  412.   
  413. 377EH 44D2H -  Divide the signed integer in DE by the signed integer in HL.  
  414.                Entry:  
  415.                   HL - Integer Numerator  
  416.                   DE - Integer Denominator  
  417.                Exit:  
  418.                   FAC1 - Result of division  
  419.   
  420. 37F4H       -  Add the single precision numbers in FAC1 and BCDE   
  421.                (FAC1=FAC1+BCDE)  
  422.                Entry:  
  423.                   FAC1 - First single precision number  
  424.                   BCDE - Second single precision number  
  425.                Exit:  
  426.                   FAC1 - Result of single precision addition  
  427.   
  428. 37F7H       -  Add the single precision numbers in FAC1 and FAC2   
  429.                (FAC1=FAC1+FAC2).  
  430.                Entry:  
  431.                   FAC1 - First single precision number  
  432.                   FAC2 - Second single precision number  
  433.                Exit:  
  434.                   FAC1 - Result of single precision addition  
  435.   
  436. 37FDH       -  Subtract the single precision numbers in FAC1 and BCDE   
  437.                (FAC1=FAC1-BCDE)  
  438.                Entry:  
  439.                   FAC1 - First single precision number  
  440.                   BCDE - Second single precision number  
  441.                Exit:  
  442.                   FAC1 - Result of subtract  
  443.   
  444. 3803H       -  Multiply the single precision numbers in FAC1 and BCDE    
  445.                (FAC1=FAC1*BCDE)  
  446.                Entry:  
  447.                   FAC1 - First single precision number  
  448.                   BCDE - Second single precision number  
  449.                Exit:  
  450.                   FAC1 - Result of multiply  
  451.   
  452. 3806H       -  Multiply the single precision numbers in FAC1 and FAC2    
  453.                (FAC1=FAC1*FAC2)  
  454.                Entry:  
  455.                   FAC1 - First single precision number  
  456.                   FAC2 - Second single precision number  
  457.                Exit:  
  458.                   FAC1 - Result of multiply  
  459.   
  460. 380EH       -  Single precision divide (FAC1=BCDE/FAC1)  
  461.                Entry:  
  462.                   BCDE - Single precision numerator  
  463.                   FAC1 - Single precision denominator  
  464.                Exit:  
  465.                   FAC1 - Result of divide  
  466.   
  467. 3827H       -  Load FAC2 with the single precision number in BCDE.  
  468.                Entry:  
  469.                   BCDE - Single precision number  
  470.                Exit:  
  471.                   FAC2 - Copy of single precision number  
  472.                   HL - Destroyed  
  473.   
  474. 3840H       -  Convert the ASCII number pointed to by HL to its double   
  475.                precision equivalent.  
  476.                Entry:  
  477.                   HL - Points to buffer with ASCII number  
  478.                Exit:  
  479.                   FAC1 - Value of ASCII number  
  480.                   All registers destroyed  
  481.   
  482. 39D4H 470BH -  Print HL in ASCII form at the current cursor position  
  483.                Entry:  
  484.                   HL - Contains 16 bit binary number to print  
  485.                Exit:  
  486.                   All registers destroyed  
  487.   
  488. 39E8H       -  Convert the binary number in FAC1 to ASCII  
  489.                Entry:  
  490.                   HL - Points to the start of the buffer where the ASCII   
  491.                        number will be stored  
  492.                   FAC1 - Binary Number  
  493.                Exit:  
  494.                   All registers destroyed  
  495.   
  496. 39ECH       -  Convert the binary number in FAC1 to ASCII.  This routine   
  497.                will format the ASCII output with the same parameters offered  
  498.  
  499.                by BASIC's PRINT USING statement.  
  500.                Entry:  
  501.                   A - Bit configuration for PRINT USING options  
  502.                       Bit:  
  503.                          0 - Exponential notation  
  504.                          1 - Not used (reset)  
  505.                          2 - Sign (+ or -) follows ASCII number  
  506.                          3 - Sign (+ or -) preceeds number  
  507.                          4 - Print leading '$'  
  508.                          5 - Asterisks fill  
  509.                          6 - Print commas every third digit  
  510.                          7 - Set, allow print using formating  
  511.                              Reset, do no formating on number  
  512.                   B - Number of digits to the left of the decimal   
  513.                       point.  This value is used for placeholder filling  
  514.                   C - Number of digits to the right of the decimal   
  515.                       point.   This value is used for placeholder   
  516.                       filling  
  517.                   HL - Start of receiving buffer for ASCII number  
  518.                   FAC1 - Binary number to convert  
  519.                Exit:  
  520.                   All registers destroyed  
  521.   
  522. 3D7FH       -  Single precision exponential function  
  523.   
  524. 3D8EH       -  Double precision exponential function  
  525.   
  526. 3DF7H       -  Integer exponential function  
  527.  
  528. 3F22H 4C3DH -  OMERR
  529.  
  530. 3F2FH 4C4AH -  SETMAX
  531.  
  532. <EOF>
  533.