0% found this document useful (0 votes)
10 views

flat assembler - Screenshot_ Use DEBUG to create .COM executable

The document is a message board thread discussing the use of the DEBUG program to create .COM executables in Assembly language. Users share their experiences and techniques related to programming with DEBUG, including batch file usage and redirection. Additionally, there are mentions of other debugging tools and nostalgic reflections on early programming experiences.

Uploaded by

Alexander Silva
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

flat assembler - Screenshot_ Use DEBUG to create .COM executable

The document is a message board thread discussing the use of the DEBUG program to create .COM executables in Assembly language. Users share their experiences and techniques related to programming with DEBUG, including batch file usage and redirection. Additionally, there are mentions of other debugging tools and nostalgic reflections on early programming experiences.

Uploaded by

Alexander Silva
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

flat assembler

Message board for the users of flat assembler.

Home Search Register


Log in to check your private messages Log in

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?

Description: Use DEBUG to create a .COM executable instantly


Filesize: 19.02 KB
Viewed: 11407 Time(s)

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

Joined: 08 Jan _________________


2018 Asm For Wise Humans
Posts: 821

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

Display posts from previous: All Posts Oldest First

Jump to: DOS


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Main index Download Documentation Examples Message board

Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.

You might also like