How do u make *.com files using masm615 ?
First, you need to get the 16-bit linker to build COM files:
http://spiff.tripnet.se/~iczelion/files/Lnk563.exe
Example code:
Building the COM file:
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
In a .com file, DS equals CS by default.
You are right, I am so accustumed to EXE files that I equaled DS to CS :)
to make com files.
Is not Masm a better choice to code com files? :)
debug for com files? Heh. Yay, it's soooo nice having to use hardcoded offsets instead of labels, and not having comments. *cough*.
debug for com files? Ha!
You can also run 16 bit DOS on an Athlon-64. But that doesn't mean you should... :grin:
You can also run 16 bit DOS on an Athlon-64. But that doesn't mean you should... :grin: