Mail Archives: djgpp/1997/02/02/22:47:05
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 -