Hello asm_people,
I just started asm with the aim of learning more about the the IBM PC architecuture. I tried to assemble the following program with masm32, but but it does not want to assemble. :sad: Please help.
.model tiny
.code
.startup
mov ax,0
mov bx,0000h
mov cx,0
mov si,ax
mov di,ax
mov bp,ax
.exit
end
Regards,
Twanny.
I just started asm with the aim of learning more about the the IBM PC architecuture. I tried to assemble the following program with masm32, but but it does not want to assemble. :sad: Please help.
.model tiny
.code
.startup
mov ax,0
mov bx,0000h
mov cx,0
mov si,ax
mov di,ax
mov bp,ax
.exit
end
Regards,
Twanny.
The MASM32 package is set up for 32bit programs - your code is 16bit. There's no problem assembling the code, by the way - your problem is in the link stage. The linker included in the MASM32 package doesn't support 16bit code, so you will need a 16-bit linker. It should be available somewhere on microsoft.com, or you can grab it from here: http://win32asm.cjb.net/
EDIT: straight from the source :) , ftp://ftp.microsoft.com/Softlib/MSLFILES//LNK563.EXE .
EDIT #2: also see http://www.asmcommunity.net/board/index.php?topic=25659.msg187273#msg187273 , adding it to the FAQ section now.
EDIT: straight from the source :) , ftp://ftp.microsoft.com/Softlib/MSLFILES//LNK563.EXE .
EDIT #2: also see http://www.asmcommunity.net/board/index.php?topic=25659.msg187273#msg187273 , adding it to the FAQ section now.