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: 219
FlierMate 24 Jan 2021, 11:46
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: 9883 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: 726
Ali.Z 25 Jan 2021, 08:38
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: 4060
Location: vpcmpistri
bitRAKE 26 Jan 2021, 18:23
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: 219
FlierMate 27 Jan 2021, 06:14
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: 4060
Location: vpcmpistri
bitRAKE 27 Jan 2021, 18:23
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)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
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: 514
Location: Czech republic, Slovak republic
Feryno 29 Jan 2021, 12:38
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: 710 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: 1657
Location: Toronto, Canada
AsmGuru62 29 Jan 2021, 22:20
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: 514
Location: Czech republic, Slovak republic
Feryno 31 Jan 2021, 09:00
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
BoraxMan



Joined: 10 Jul 2020
Posts: 3
BoraxMan 23 Jun 2021, 11:35
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 what it did. I know that I wanted to write my own "debug" programs.

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.
Post 23 Jun 2021, 11:35
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.