Hello guys, well, I'm reading about DOS applications... and I can not assemble this hello world... lol
assume cs:cseg, ds:dseg, ss:sseg
cseg segment
start:
mov ax,dseg
mov ds,ax
lea dx,message
mov ah,09h
int 21h
mov ax,4c00h
int 21h
cseg ends
dseg segment byte
message db "Hello, World!$"
dseg ends
sseg segment stack
db 100h dup(?)
sseg ends
end start
after, I tried with a bat file:
@echo off
"\Masm32\Bin\doslnk.exe /NOLOGO,3" "DOSMyHello.obj"
pause
why lol
Shouldn't you select a .model and an instruction set? Also, do you call an assembler before linking?
It works for me, assembling with ML 6.15 and linking with Linker Version 5.60.339.
ml /W3 /Fl /Sa /c rhl.asm
link16 /MAP rhl;
These are my normal command lines, but you can eliminate all of the switches except /c.
oh... Now I'm looking the doc lnk.exe program in my folder.... and I did not find it...
perhaps radAsm is evil and must be link16? ... I will download the latest version of Masm... thanks guys :biggrin: