How do u make *.com files using masm615 ?
Posted on 2004-02-25 15:46:13 by DevSpartacus
First, you need to get the 16-bit linker to build COM files:

http://spiff.tripnet.se/~iczelion/files/Lnk563.exe

Example code:


.model tiny
.code
org 100h
start:
push cs
pop ds
lea dx,msg
mov ah,9
int 21h
int 20h
msg db 'Hello amigo!$'
end start


Building the COM file:


ml /c Sample.asm
link /tiny Sample.obj ; 16-bit linker
Posted on 2004-02-25 16:03:36 by Vortex
In a .com file, DS equals CS by default.
Posted on 2004-02-25 18:12:39 by death
You are right, I am so accustumed to EXE files that I equaled DS to CS :)
Posted on 2004-02-26 11:27:13 by Vortex
to make com files.
Posted on 2004-02-26 13:39:34 by mrgone
Is not Masm a better choice to code com files? :)
Posted on 2004-02-26 14:07:42 by Vortex
debug for com files? Heh. Yay, it's soooo nice having to use hardcoded offsets instead of labels, and not having comments. *cough*.
Posted on 2004-02-26 14:29:51 by f0dder
debug for com files? Ha!

You can also run 16 bit DOS on an Athlon-64. But that doesn't mean you should... :grin:
Posted on 2004-02-26 18:37:14 by S/390