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

  1. @verbatim{
  2.  
  3. The following patch solves a problem with pushing structures with
  4. floating point elements onto the stack in Turbo C.
  5.  
  6. To  apply  this  patch,  you  will  need  to  use the DOS utility
  7. DEBUG.COM. You  may obtain a copy  of DEBUG.COM from one  of your
  8. original PC-DOS or MS-DOS diskettes.
  9.  
  10. NOTE:   
  11.  
  12. 1. Do not patch your original Turbo C disk, use a working or
  13. backup copy of TCC.EXE and TC.EXE for this patch.
  14.  
  15. 2. DEBUG  is not sensitive  to upper and  lower case. All
  16. addresses  are   listed  in  upper   case  for  ease   of
  17. readibility.
  18.  
  19. 3.  XXXX,YYYY,ZZZZ  are  hexidecimal  digits  returned by DEBUG. 
  20. You must  replace these  digits accordingly  when typing in your
  21. commands.
  22.  
  23. 4. While in DEBUG, the prompt will appear as a dash (-).
  24.  
  25. 5. If you do not  receive the appropriate response, press "q"
  26. followed by  <Enter>, to exit from DEBUG.  Check your version
  27. number and, if correct, try again.
  28.  
  29. 6. TCC.EXE and  TC.EXE will not fit together  onto a 360K disk.
  30. To  patch both programs  on a floppy  disk, you may  need  to
  31. copy  TCC.EXE and  DEBUG.COM onto  one disk  and  perform the
  32. patch. Save the patched version of TCC.EXE to another disk. 
  33. Repeat the same steps using TC.EXE.
  34.  
  35. At the DOS  prompt, type the following information  exactly as it
  36. appears (Conclude each line by pressing <Enter>).}
  37.  
  38.                              Patch for TCC.EXE
  39.  
  40. Type the following:          You will see:
  41.  
  42. @verbatim{
  43.  
  44. debug tcc.xex<Enter>         -
  45.  
  46. r<Enter>                     ... CS=XXXX ...
  47.                              -
  48.  
  49. h XXXX 1C0C<Enter>           YYYY  ZZZZ
  50.                              -
  51.  
  52. e YYYY:2FAD<Enter>           YYYY:2FAD   25.
  53.  
  54. A9<Space>                    YYYY:2FAD   25.A9   01.
  55. <Space>                      YYYY:2FAD   25.A9   01.     00.
  56. <Space>                      YYYY:2FB0   81.
  57. 74<Space>                    YYYY:2FB0   81.74   E2.
  58. 0B<Space>                    YYYY:2FB0   81.74   E2.0B   00.
  59. 40<Space>                    YYYY:2FB0   81.74   E2.0B   00.40   00.
  60. 26<Space>                    YYYY:2FB0   81.74   E2.0B   00.40   00.26
  61.                                          0B.
  62. 83<Space>                    YYYY:2FB0   81.74   E2.0B   00.40   00.26
  63.                                          0B.83   D0.
  64. 47<Space>                    YYYY:2FB0   81.74   E2.0B   00.40   00.26
  65.                                          0B.83   D0.47   74.
  66. 6<Space>                     YYYY:2FB0   81.74   E2.0B   00.40   00.26
  67.                                          0B.83   D0.47   74.6    0A.
  68. 1<Space>                     YYYY:2FB8   26.
  69. <Space>                      YYYY:2FB8   26.     83.
  70. <Space>                      YYYY:2FB8   26.     83.     47.
  71. 57<Space>                    YYYY:2FB8   26.     83.     47.57   06.
  72. 8<Space>                     YYYY:2FB8   26.     83.     47.57   06.8
  73.                                          01.
  74. 0<Space>                     YYYY:2FB8   26.     83.     47.57   06.8
  75.                                          01.00   26.
  76. 29<Space>                    YYYY:2FB8   26.     83.     47.57   06.8
  77.                                          01.00   26.29   83.
  78. 6<Space>                     YYYY:2FB8   26.     83.     47.57   06.8
  79.                                          01.00   26.29   83.6    57.
  80. 54<Space>                    YYYY:2FC0   08.
  81. 74<Space>                    YYYY:2FC0   08.74   00.
  82. 90<Enter>                    YYYY:2FC0   08.74   00.90
  83.                              -}
  84. @verbatim{
  85.  
  86.                              -
  87.  
  88. q<Enter>                     A>
  89.  
  90. ren tcc.xex tcc.exe<Enter>   A>
  91.  
  92.                              Patch for TC.EXE
  93.  
  94. Type the following:          You will see:
  95.  
  96. ren tc.exe tc.xex<Enter>     A>
  97.  
  98. debug tc.xex<Enter>          -
  99.  
  100. r<Enter>                     ... CS=XXXX ...
  101.                              -
  102.  
  103. h XXXX 2557<Enter>           YYYY  ZZZZ
  104.                              -
  105.  
  106. e YYYY:2FA4<Enter>           YYYY:2FA4   25.
  107.  
  108. A9<Space>                    YYYY:2FA4   25.A9   01.
  109. <Space>                      YYYY:2FA4   25.A9   01.     00.
  110. <Space>                      YYYY:2FA4   25.A9   01.     00.     81.
  111. 74<Space>                    YYYY:2FA8   E2.
  112. 0B<Space>                    YYYY:2FA8   E2.0B   00.
  113. 40<Space>                    YYYY:2FA8   E2.0B   00.40   00.
  114. 26<Space>                    YYYY:2FA8   E2.0B   00.40   00.26   0B.
  115. 83<Space>                    YYYY:2FA8   E2.0B   00.40   00.26   0B.83
  116.                                          D0.
  117. 47<Space>                    YYYY:2FA8   E2.0B   00.40   00.26   0B.83
  118.                                          D0.47   74.
  119. 6<Space>                     YYYY:2FA8   E2.0B   00.40   00.26   0B.83
  120.                                          D0.47   74.6    0A.
  121. 1<Space>                     YYYY:2FA8   E2.0B   00.40   00.26   0B.83
  122.                                          D0.47   74.6    0A.1    26.
  123. <Space>                      YYYY:2FB0   83.
  124. <Space>                      YYYY:2FB0   83.     47.
  125. 57<Space>                    YYYY:2FB0   83.     47.57   06.
  126. 8<Space>                     YYYY:2FB0   83.     47.57   06.8    01.
  127. 0<Space>                     YYYY:2FB0   83.     47.57   06.8    01.0
  128.                                          26.}
  129. @verbatim{
  130.  
  131. 29<Space>                    YYYY:2FB0   83.     47.57   06.8    01.00
  132.                                          26.29   83.
  133. 6<Space>                     YYYY:2FB0   83.     47.57   06.8    01.00
  134.                                          26.29   83.6    57.
  135. C<Space>                     YYYY:2FB0   83.     47.57   06.8    01.00
  136.                                          26.29   83.6    57.C    08.
  137. A3<Space>                    YYYY:2FB8   00.
  138. 90<Enter>                    YYYY:2FB8   00.90
  139.                              -
  140.  
  141. w<Enter>                     Writing 38759 bytes
  142.                              -
  143.  
  144. q<Enter>                     A>
  145.  
  146. ren tc.xex tc.exe<Enter>     A>
  147. }