The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: confusius on December 02, 2005, 09:37:10 PM

Title: 16bit and 32bit real mode with ml.exe
Post by: confusius on December 02, 2005, 09:37:10 PM
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
Title: Re: 16bit and 32bit real mode with ml.exe
Post by: LL on December 02, 2005, 10:08:05 PM
Hi confusius,

You may want to check these two places:

http://www.masmforum.com/simple/index.php?topic=2689.0

http://www.masmforum.com/simple/index.php?topic=2492.0

LL
Title: Re: 16bit and 32bit real mode with ml.exe
Post by: MichaelW on December 02, 2005, 11:46:15 PM
http://www.masmforum.com/simple/index.php?topic=1123.0