www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/02/22:47:05

From: afn03257 AT freenet2 DOT afn DOT org (Daniel P Hudson)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP vs Borland C++
Date: 3 Feb 1997 01:05:30 GMT
Lines: 43
Message-ID: <5d3dkq$o9v@huron.eel.ufl.edu>
References: <199701291250 DOT HAA05157 AT freenet2 DOT freenet DOT ufl DOT edu>
<E4sLLu DOT 2Iw AT boss DOT cs DOT ohiou DOT edu> <5cubtu$13n AT huron DOT eel DOT ufl DOT edu>
<32F2FDEC DOT AA3 AT worldnet DOT att DOT net> <5d0003$2ju AT huron DOT eel DOT ufl DOT edu>
<32f45fab DOT 1058998 AT news DOT ox DOT ac DOT uk>
Reply-To: afn03257 AT afn DOT org"Dan"
NNTP-Posting-Host: freenet2.afn.org
NNTP-Posting-User: afn03257
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) wrote:
>On 1 Feb 1997 17:54:11 GMT, afn03257 AT freenet2 DOT afn DOT org (Daniel P
>Hudson) wrote:

>> In reguards to Edit, I patched the QBASIC.EXE file so that *.TXT was 

>> me borrow, and I usd CTRL+P and ALT + ??? to write machine code 
>> using ASCII character.

>You used a text editor to patch a binary? You used a text editor that
>expands all tabs to spaces and doesn't put them back afterwards?
>Wow... I'm impressed... Bit of a waste of time, though, for QBasic...

 Technically, that only disables one command/address scheme.
 The command was OR, which I didn't need, and luckily I never needed
 to reference any address ending in decimal 9.
 That is no big deal. All I needed to do was open a file which I 
 redirected stdout to and let Command.com handle opening it for
 me, but make sure to use >> and not >. ;-)
 Set the file pointer to the correct address which I retrieved using
 DOSSHELL and 9 and write * followed by two spaces. Later I changed it
 to *3* follwoed by two NUL's using debug though. I also learned shortly
 after that QBASIC can be used to edit file in binary mode and it can
 set a file pointer.

 No, no, no. QBASIC.EXE houses EDIT as well as DOS's HELP program.
 that's why ypu patch the QBASIC.EXE file and not EDIT.COM whish IMHO,
 is an utter waste of time to keep as a batch file containing

 @ECHO OFF
 QBASIC /ED %1

 Takes up less space than edit.com actually does. Just name it EDIT.BAT
 and you should hve very little probelms, unless someone hardcoded
 EDIT.COM in theior program for an exec.

>Why didn't you just use debug for this too? That is what debug was
>designed for...

 Because I had misplaced it in my Windows directory and I really hate
 going through a week of backup's for one little file, I figured I'd 
 eventually get around to it the next time I backed up, but I found it 
 before then. trust me, I didn't enjoy using EDIT for this purpose.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019