home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / PROG / PASCAL / MISCTI10.ZIP / TI190.ASC < prev    next >
Encoding:
Text File  |  1988-04-18  |  5.5 KB  |  141 lines

  1. PRODUCT : TURBO PASCAL     NUMBER : 190
  2. VERSION : 3.0xx
  3.      OS : PC-DOS
  4.    DATE : August 1, 1986
  5.  
  6.   TITLE : TANDY 2000 PATCH
  7.  
  8. The  following example routines are public domain  programs  that 
  9. have  been uploaded to our Forum on CompuServe.  As a courtesy to 
  10. our  users  that  do not have  immediate  access  to  CompuServe, 
  11. Technical Support distributes these routines free of charge.
  12.  
  13. However,  because these routines are public domain programs,  not 
  14. developed by Borland International,  we are unable to provide any 
  15. technical support or assistance using these routines. If you need 
  16. assistance   using   these   routines,    or   are   experiencing 
  17. difficulties,  we  recommend  that you log  onto  CompuServe  and 
  18. request  assistance  from the Forum members that developed  these 
  19. routines.
  20.  
  21. The  IBM-PC  implementation  of Turbo Pascal version 3.0  uses  a 
  22. memory-mapped editor.   This is much faster than earlier versions 
  23. of Turbo that used the IBM-PC BIOS.  Several patches are required 
  24. for the Tandy 2000 to use the editor in the IBM-PC implementation 
  25. of Turbo Pascal 3.0.
  26.  
  27. The screen memory of the Tandy 2000 is organized in much the same 
  28. manner  as the IBM-PC.   The provided patch results in a copy  of 
  29. the TURBO.COM file with the following properties:
  30.  
  31. 1. Normal text in the editor is displayed in NORMAL intensity.
  32. 2. A marked block of text is displayed in INVERSE video.
  33. 3. The "NEW FILE" and "NO FILES" messages BLINK.
  34.  
  35.    The video attribute which is used to control the highlighting
  36.    of selected blocks of text also controls the attribute of the    
  37. "NEW  FILE" and "NO FILES" messages.   Since in one  case  the    
  38. attribute is written directly to video RAM,  and in the  other    
  39. it  is  passed  to an MS-DOS  output  routine,  the  resulting    
  40. attributes are different.
  41.  
  42. Have  the  following  information  ready  before  attempting  the 
  43. required patches:
  44.  
  45. 1. Screen memory address
  46.    ---------------------
  47.    The  location  of screen memory depends on the amount  of  RAM    
  48. installed  in the Tandy 2000.   The following table gives  the    
  49. video address for each increment of 128K RAM installed:
  50.  
  51.  
  52.     ------   -------------------------
  53.      128K            1EC0
  54.      256K            3EC0
  55.      384K            5EC0
  56.      512K            7EC0
  57.      640K            9EC0
  58.      768K            BEC0
  59.  
  60. 2. Patch location in the TURBO file
  61.    --------------------------------
  62.    The  patch  location in the file depends  upon  which  version       
  63. of  Turbo Pascal is being modified.   As of this writing,  six       
  64. distinct versions exist: 
  65.  
  66.      versions 3.00x      versions 3.01x
  67.      --------------      --------------
  68.       regular             regular
  69.        8087                8087
  70.        BCD                 BCD
  71.  
  72.   Note: The  version letter (x) is not significant since it  does         
  73. not affect patch locations.
  74.  
  75.   The following  table  gives the patch address for each  of  the   
  76. above versions:
  77.  
  78.   TURBO PASCAL version number     Patch address (hexadecimal)
  79.   -----------------------------   -----------------------------
  80.    TURBO.COM    3.00x              3FC0
  81.    TURBO-87.COM 3.00x              3A89
  82.    TURBOBCD.COM 3.00x              3EE1
  83.    TURBO.COM    3.01x              4088
  84.    TURBO-87.COM 3.01x              3B51
  85.    TURBOBCD.COM 3.01x              3FA9
  86.  
  87.  
  88. Modifying the TURBO PASCAL file
  89. -------------------------------
  90.  
  91. 1. Use  TINST to  install Turbo Pascal for the screen type  "b/w              
  92. display  80x25."   If  you are patching the  8087  and/or  BCD           
  93. versions,   you   must   install  each  file   separately   by           
  94. temporarily renaming it to TURBO.COM before running TINST.
  95.  
  96. 2. Now  use the DEBUG program supplied on the Tandy DOS  diskette    
  97. to  install  the  patch (user input is  in  UPPERCASE;  system    
  98. output  in lowercase).   "XXXX" represents the address of  the    
  99. video segment
  100.  
  101. 3. pppp represents the patch address previously listed.
  102.  
  103. 4. ssss represents the screen memory address previously listed.
  104.  
  105. Use  the DOS utility,  DEBUG,  to apply the following patch to  a 
  106. copy  of your .COM file.   Copy DEBUG.COM into the directory  (or 
  107. onto  the diskette) where your working copy of  .COM is  located. 
  108. At  the DOS prompt,  type the following information exactly as it 
  109. appears. (Conclude each line by pressing <Enter>.) 
  110.  
  111. Note:   1.   DEBUG is not sensitive to upper and lower case.  All 
  112.              addresses  are  listed  in upper case  for  ease  of 
  113.              readability.
  114.  
  115.         2.   While in DEBUG, the prompt will appear as a dash
  116. (-).
  117.  
  118.         3.   If  you  do  not receive the  appropriate  response,              
  119. press  "q",  then  <Enter>,  to  quit.   Check  your                                      
  120. version numbers and, if correct, try again.
  121.  
  122.  
  123. YOU TYPE                   THIS APPEARS
  124.  
  125.      debug TURBO.COM                    -
  126.      aPPPP<Return>                      xxxx:pppp
  127.      mov DX,SSSS<Return>                xxxx:pppp+3
  128.      mov byte PTR [0000],OA<Return>     xxxx:pppp+8
  129.      mov byte PTR [0002],8A<RETURN>     xxxx:pppp+B
  130.      <Return>                           -
  131.      w<Return>                          writing xxxx bytes
  132.      q<Return>                          DOS prompt
  133.                      
  134.  
  135.  
  136.    NOTE: If  additional memory is added at a later time,  it will          
  137. be necessary to repeat the DEBUG portion of the patch in          
  138. order to account for the new location of the screen.
  139.         
  140.  
  141.