16bit and 32bit real mode with ml.exe

Started by confusius, December 02, 2005, 09:37:10 PM

Previous topic - Next topic

confusius

how can i write non non windows exe's with ml.exe . Do i need anthor linker than the one in the masm32 package. I tried so many combinations and switches of ml and linker just to compile this code

data segment para
        buffer db 512 dup ('b')
data ends       
             
stack segment para
        DB 2048 DUP ('s')
stack ends       

code segment para
        assume CS:code,DS:data,SS:stack

START PROC FAR
        mov ax,cs
        sub ax,80h
        mov ss,ax
        mov sp,800h
        sub ax,20h
        mov ds,ax
        mov es,ax


mainloop:
        mov ah,0
        int 16h
        jmp mainloop
        RET
START ENDP

code ends       
        END START