News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Before posting if your code contains INT 21h

Started by donkey, December 25, 2004, 11:44:22 AM

Previous topic - Next topic

donkey

Hi all,

Many members ask why their code won't assemble using MASM32, generally the code is fine but it is DOS code. Normal (ring3) Windows 32 bit code does not use interrupts and uses a flat memory model.

So if your code contains any of the following it is a good indicator that it belongs in the 16bit section of the board. You can post it in this forum but your answers will be better and quicker in the dedicated DOS subforum.

Hints that it's DOS code

.model <Anything but FLAT>
mov ax,@data
INT <any number>

To compile this code you need a 16 bit linker, the one distributed with MASM32 is only for 32 bit programs and can not be made to do it. You will find all of the help you need and links to the necessary building tools in the DOS subforum.

16 bit DOS Programming
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable