flat assembler
Message board for the users of flat assembler.

Index > DOS > Screenshot: Use DEBUG to create .COM executable

Author
Thread Post new topic Reply to topic
FlierMate



Joined: 21 Jan 2021
Posts: 73
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)

DEBUG isn't included in DOSBox. I either get it from FreeDOS project or download it as separate package from the Internet (somewhere, can't remember).

Does the DEBUG remind you of the old days?


Description: Use DEBUG to create a .COM executable instantly
Filesize: 19.02 KB
Viewed: 1368 Time(s)

H.jpg


Post 24 Jan 2021, 11:46
View user's profile Send private message Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 442
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 Laughing

_________________
Asm For Wise Humans
Post 25 Jan 2021, 08:38
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3206
Location: vpcmipstrm
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 models. Even HLLs have adopted this approach through incremental building - reducing the turnaround time for even the most complex of projects.
Post 26 Jan 2021, 18:23
View user's profile Send private message Visit poster's website Reply with quote
FlierMate



Joined: 21 Jan 2021
Posts: 73
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 your tools means solving errors as they happen or shifting design to match working models.


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?
Post 27 Jan 2021, 06:14
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3206
Location: vpcmipstrm
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
https://datacadamia.com/lang/dos/redirection
Code:
debug < proggie.txt    
...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)/¯ unlicense.org
Post 27 Jan 2021, 18:23
View user's profile Send private message Visit poster's website Reply with quote
Feryno



Joined: 23 Mar 2005
Posts: 474
Location: Czech republic, Slovak republic
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 them. Unfortunately the disasm is for a86 assembler, they are dated back into 1998...


Description:
Download
Filename: a86.zip
Filesize: 5.83 KB
Downloaded: 108 Time(s)

Post 29 Jan 2021, 12:38
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1424
Location: Toronto, Canada
AsmGuru62
Anyone remember AFD debugger? It was next step after DEBUG utility.
Post 29 Jan 2021, 22:20
View user's profile Send private message Send e-mail Reply with quote
Feryno



Joined: 23 Mar 2005
Posts: 474
Location: Czech republic, Slovak republic
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.
Post 31 Jan 2021, 09:00
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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


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

Website powered by rwasa.