The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: leopardus on January 02, 2007, 01:21:53 PM

Title: New bie question to compile MASM 6.x progs with masm32.
Post by: leopardus on January 02, 2007, 01:21:53 PM
Hello masm32,

I'm started on asm with this book, printed in 2000, that uses MASM 6.x to compile programs like the one below. I'm trying to assemble this with masm32, however there's something wrong. Anyone can space some time to tell me what I should do to get this working?

         .MODEL SMALL
         .DATA

      DATA1   DB   10H
      DATA2   DB   0
      DATA3   DW   0
      DATA4   DW   0AAAAH

         .CODE
         .STARTUP

         MOV   AL,DATA1
         MOV   AH,DATA2
         MOV   DATA3,AX
         MOV   BX,DATA4

         .EXIT
         END

Regards,
Twanny.
Title: Re: New bie question to compile MASM 6.x progs with masm32.
Post by: Tedd on January 02, 2007, 01:38:14 PM
This is 16-bit code. Masm32 is for 32-bit code.

You'll want a 16-bit version of masm :wink
Title: Re: New bie question to compile MASM 6.x progs with masm32.
Post by: WiteG on January 03, 2007, 10:29:20 AM
http://www.masm32.com/board/index.php?topic=6440.0

you can assemble your program with masm32 but it may be a little problem to link it.