home *** CD-ROM | disk | FTP | other *** search
- BASIC Compiler Alteration
- =========================
-
-
- One annoying feature of the BASIC compiler is that it produces code which
- resets the printer. If you would like to prevent this from happening,
- try the following steps.
-
-
- 1. Make a copy of BASRUN.EXE; call it BASRUN.NEW .
-
- 2. Enter the following lines:
-
- entry comments
- =========================== =====================================
-
- DEBUG BASRUN.NEW
- -S 0100,7000 CD,21 system responds with "-"; you type the rest
- nnnn:2EEB system responds with this line...
- nnnn:64CB and this line.
- "nnnn" may be anything.
- -U 64C9
- MOV AH,01 this line should appear ...
- INT 17 this line also should appear ...
- .
- . additional lines will follow
- .
- If you do not see "MOV AH,01" and
- "INT 17" *DO NOT CONTINUE!!!*
- -E 64CB You are about to change "INT 17"
- CD.90 17.90 to a "NOP" instruction. After typing
- "E 64CB", the system will respond with
- "CD."; type "90", then hit the space
- bar. The system will now respond with
- "17"; type "90" and hit the ENTER key.
- -W This writes the altered version of BASRUN.NEW
- to disk.
- -Q Leave DEBUG.
-
- RENAME BASRUN.EXE BASRUN.OLD Rename the original version and keep
- somewhere safe.
- RENAME BASRUN.NEW BASRUN.EXE Rename the new version.
-
-
-
-
-
- The above change effects programs which use the BASRUN.EXE runtime
- library. If you compile programs with the "/O" option, it will be
- necessary to alter BASCOM.LIB in a similar fashion:
-
- RENAME BASCOM.LIB BASCOM.OLD
- COPY BASCOM.OLD BASCOM.LIB
- DEBUG BASCOM.LIB
- -S 0100,FFFF CD,17
- -U C81E <===== This MUST result in: MOV AH,01
- INT 17
- If it doesn't then STOP!
- -E C820
- CD.90 17.90
- -W
- -Q
-
-
-
-
-
- You may use the same technique to alter BASIC programs compiled with
- the "/O" option for which you do not have the source code: use DEBUG
- to look for INT 17 where AH is set to 1 (this tells the BIOS to
- initialize the printer). DO NOT TOUCH any code if AH is set to some
- other value (e.g., 0)
-
- Hope this has been of help.
-
-
-
- Larry Gottlieb
- this has been of help.
-
-
-
- Larry Gottlieb
- this has been of help.
-
-
-
- Larry Gottlieb
-