Here is the command line I used to compile and link with:
@ml /Bllink16 /c /nologo test4.asm
@link16 /nologo test4.obj , test4.exe,,,,
Here is the full code:
.model small
.stack 100h
.data
line db "this is the end", 00h, '$', 0
.code
.startup
mov ax, offset line
mov dx, ax
mov ah, 09h
int 21h
mov al, 0
mov ah, 4ch
int 21h
end
Is it the 16 bit linker that is making things work?
I have seen some example code where pople set ds, sp and other registers at the top of code. Do you know of a list of recommended start instructions that would set up the program enviroment in a reasonable way.
Keith