home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #3.1 / RBBSIABOX31.cdr / basw / bascom.tip < prev    next >
Encoding:
Text File  |  1984-11-03  |  3.3 KB  |  89 lines

  1.                            BASIC Compiler Alteration
  2.                            =========================
  3.  
  4.  
  5. One annoying feature of the BASIC compiler is that it produces code which
  6. resets the printer.  If you would like to prevent this from happening,
  7. try the following steps.
  8.  
  9.  
  10. 1.  Make a copy of BASRUN.EXE; call it BASRUN.NEW      .
  11.  
  12. 2.  Enter the following lines:
  13.  
  14.             entry                               comments
  15.   ===========================    =====================================
  16.  
  17.   DEBUG BASRUN.NEW             
  18.   -S 0100,7000 CD,21             system responds with "-"; you type the rest
  19.      nnnn:2EEB                   system responds with this line...
  20.      nnnn:64CB                                   and this line.
  21.                                  "nnnn" may be anything.
  22.   -U 64C9
  23.      MOV  AH,01                  this line should appear ...
  24.      INT  17                     this line also should appear ...
  25.       .
  26.       .                             additional lines will follow
  27.       .
  28.                                   If you do not see "MOV  AH,01" and
  29.                                   "INT  17"   *DO NOT CONTINUE!!!*
  30.   -E 64CB                         You are about to change "INT 17"
  31.    CD.90 17.90                      to a "NOP" instruction.  After typing
  32.                                     "E 64CB", the system will respond with
  33.                                     "CD."; type "90", then hit the space
  34.                                     bar.  The system will now respond with
  35.                                     "17"; type "90" and hit the ENTER key.
  36. -W                                This writes the altered version of BASRUN.NEW
  37.                                   to disk.  
  38. -Q                                Leave DEBUG.
  39.  
  40. RENAME BASRUN.EXE BASRUN.OLD      Rename the original version and keep
  41.                                   somewhere safe.
  42. RENAME BASRUN.NEW BASRUN.EXE      Rename the new version.
  43.  
  44.  
  45.  
  46.  
  47.  
  48. The above change effects programs which use the BASRUN.EXE runtime
  49. library.  If you compile programs with the "/O" option, it will be
  50. necessary to alter BASCOM.LIB in a similar fashion:
  51.  
  52. RENAME BASCOM.LIB BASCOM.OLD
  53. COPY BASCOM.OLD BASCOM.LIB
  54. DEBUG BASCOM.LIB
  55. -S 0100,FFFF CD,17
  56. -U C81E                 <===== This MUST result in:   MOV  AH,01
  57.                                                       INT  17
  58.                                If it doesn't then STOP!
  59. -E C820
  60.     CD.90  17.90
  61. -W
  62. -Q
  63.  
  64.  
  65.  
  66.  
  67.  
  68. You may use the same technique to alter BASIC programs compiled with
  69. the "/O" option for which you do not have the source code:  use DEBUG
  70. to look for INT 17 where AH is set to 1 (this tells the BIOS to
  71. initialize the printer).  DO NOT TOUCH any code if AH is set to some
  72. other value (e.g., 0)
  73.  
  74. Hope this has been of help.
  75.  
  76.  
  77.  
  78. Larry Gottlieb
  79. this has been of help.
  80.  
  81.  
  82.  
  83. Larry Gottlieb
  84. this has been of help.
  85.  
  86.  
  87.  
  88. Larry Gottlieb
  89.