Dec 122017
 
This program is freeware that converts .COM files to text and then to a script suitable for DOS's debug utility to convert it back to a .COM file again. C source code included.
File DATA2SCR.ZIP from The Programmer’s Corner in
Category Assembly Language
This program is freeware that converts .COM files to text and then to a script suitable for DOS’s debug utility to convert it back to a .COM file again. C source code included.
File Name File Size Zip Size Zip Type
COM2DATA.SCR 26209 7887 deflated
COM2DATA.ZIP 5888 5716 deflated
DATA2SCR.C 7510 2284 deflated
DATA2SCR.EXE 13868 8600 deflated
DATA2SCR.SCR 50944 14252 deflated
DATA2SCR.TXT 1526 715 deflated
TPCREAD.ME 199 165 deflated

Download File DATA2SCR.ZIP Here

Contents of the DATA2SCR.TXT file


Hello.

This is a little utility that I wrote that piggybacks on the
work of COM2DATA. It reformats the text file that COM2DATA
creates so that it can be used as a script for DOS's debug utility.
To keep the program simple it relys on redirecton.

What COM2DATA does is read in a .COM file and output a text file
that is a listing in hex with line numbers and the 'DATA' BASIC
statement included. Most types of stand-alone (NON-TSR) .COM or
.BIN files can be included in your basic programs like this if
you know how. It is EASY if you dont! Just learn and ENJOY!!!

Fernando Gorchs

P.S. Oh yes... To use it just type:
COM2DATA INCRAP.COM OUTCRAP.BAS
and then type:

DATA2SCR OUTCRAP.BAS > CRAP.SCR or something like that!
and then type:

DEBUG < CRAP.SCR (Note well the direction of the arrows)

and then you will have created a .COM file named OUTCRAP.COM

I have included the source code in C. It was a small programming
assignment but it ended up being real spaghetti code. I promise,
however that it is entirely bug free. The nice thing about using
input that is computer generated from another program is that you
can rely on it. No need to make things idiot proof. No offense
meant but poeple are just too erratic.


 December 12, 2017  Add comments

Leave a Reply