flat assembler - Screenshot_ Use DEBUG to create .COM executable
flat assembler - Screenshot_ Use DEBUG to create .COM executable
Index > DOS > Screenshot: Use DEBUG to create .COM executable
Author Thread
FlierMate As I am still new on this message board, I will share some stuffs in Assembly , for
example, the screenshot below demonstrate DEBUG program can create .COM
executable in a few steps. (H.COM actually print a 'H' character on screen)
Joined: 21 Jan DEBUG isn't included in DOSBox. I either get it from FreeDOS project or download it
2021 as separate package from the Internet (somewhere, can't remember).
Posts: 219
Does the DEBUG remind you of the old days?
24 Jan 2021,
11:46
Ali.Z com format is plain file, so it always easy to make one as it contain no header.
as for debug, IIRC tomasz said in live stream this is a retro programming
25 Jan 2021,
08:38
bitRAKE I began programming in x86 back in the 80286 days, and debug was my only
assembler. I wrote batch files to pipe text into debug and save/run the output. The
rapid iteration paradigm is still my favorite way to learn. Getting more feedback from
your tools means solving errors as they happen or shifting design to match working
Joined: 21 Jul models. Even HLLs have adopted this approach through incremental building -
2003 reducing the turnaround time for even the most complex of projects.
Posts: 4225
Location:
vpcmpistri
26 Jan 2021,
18:23
FlierMate
bitRAKE wrote:
I wrote batch files to pipe text into debug and save/run the output. The rapid
iteration paradigm is still my favorite way to learn. Getting more feedback from
Joined: 21 Jan your tools means solving errors as they happen or shifting design to match
2021 working models.
Posts: 219
I am new to this, it sounds like a nice trick. Can you please share how do I use batch
files to pipe text into debug?
27 Jan 2021,
06:14
bitRAKE Many of the operations still exist today in other forms. These pages do a better job
explaining the details:
https://ss64.com/nt/syntax-redirection.html
Joined: 21 Jul https://datacadamia.com/lang/dos/redirection
2003
Posts: 4225 Code:
Location: debug < proggie.txt
vpcmpistri
...is the TLDR
The general technique is called redirection and is very powerful: small tools can be
chained together to create a powerful mesh of functionality.
_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
27 Jan 2021,
18:23
Feryno I found a collection of 4 very old dos utilities (*.scr files in the archive) which used
debug.com (prior ms dos 5.0) / debug.exe (since ms dos 5.0) to create .com
executable, they are only plane files with hexadecimal code, but for some there is
also *.asm source code included obtained by reversing binaries and disassembling
Joined: 23 Mar them. Unfortunately the disasm is for a86 assembler, they are dated back into
2005 1998...
Posts: 515
Location: Czech
republic, Slovak
republic Description:
Filename: a86.zip
Filesize: 5.83 KB Download
Downloaded: 831 Time(s)
29 Jan 2021,
12:38
AsmGuru62 Anyone remember AFD debugger? It was next step after DEBUG utility.
Joined: 28 Jan
2004
Posts: 1709
Location:
Toronto, Canada
29 Jan 2021,
22:20
Feryno I used afd some times, my version is dated back into 1985, if anyone needs it just let
me know. I also used td.exe Turbo Debugger from Borland Turbo Assembler package.
Joined: 23 Mar
2005
Posts: 515
Location: Czech
republic, Slovak
republic
31 Jan 2021,
09:00
BoraxMan The first assembly programs I typed, were debug listings from the Australian
Personal Computer magazine. I believe I had an XT system that time. I had always
wanted to learn assembly/Machine Language, but didn't have a reference book. I
remember looking at the cryptic mnemonics of the listing, but I didn't understand
Joined: 10 Jul what it did. I know that I wanted to write my own "debug" programs.
2020
Posts: 3 A little later, I got an assembler, and didn't have to use debug. I did once play with
debug at work, making a small .COM file, just for the fun of it, to see if I could.
23 Jun 2021,
11:35