Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1068607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:18:33+00:00 2026-05-16T20:18:33+00:00

I have a problem with the MASM32 assembler The following code is a Hello

  • 0

I have a problem with the MASM32 assembler

The following code is a Hello World example that I copied from the MASM32 tutorial:

.model small
.stack
.data
    message   db "Hello world!", "$"
.code

_main   proc

    mov   ax,seg message
    mov   ds,ax

    mov   ah,09
    lea   dx,message
    int   21h

    mov   ax,4c00h
    int   21h

_main   endp
end _main

On attempt to assemble, MASM32 throws A2004 error with the following comment:

C:\masm32\console.asm(11) : error A2004: symbol type conflict

Can anyone help me with that?
This code worked perfectly fine with the TASM assembler, but now I have to use MASM32 and I am having this A2004 error for any assembly code that I’ve earlier proven to work with TASM.

In case this is relevant, I am have a 32bit CPU running Win7 OS.

Thanks.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:18:34+00:00Added an answer on May 16, 2026 at 8:18 pm

    I’m pretty certain that .model small and seg are artefacts of an earlier age when the x86 architecture was truly segmented (into 64K chunks).

    The masm32 IDE doesn’t like them very much at all (not unexpected since it’s far more common nowadays to be doing 32-bit flat model code).

    The problem lies in the fact that the bin\assmbl.bat file is being used by the editor to assemble the file and it contains the line:

    \masm32\bin\ml /c /coff %1.asm > \masm32\bin\asmbl.txt
    

    (with the /coff option). This is what’s making the assembler complain.

    You can get it to work by reverting to the command line. Assuming your file is tst.asm, use the following commands:

    c:\masm32\bin\ml.exe /c tst.asm
    c:\masm32\bin\link16 tst.obj.tst.exe,,,,
    

    and you’ll have a tst.exe that works fine.


    The following transcript shows that this works:

    C:\masm32> type tst.asm
    .model small
    .stack
    .data
        message   db "Hello world!", "$"
    .code
    
    _main   proc
    
        mov   ax,seg message
        mov   ds,ax
    
        mov   ah,09
        lea   dx,message
        int   21h
    
        mov   ax,4c00h
        int   21h
    
    _main   endp
    end _main
    

     

    C:\masm32> bin\ml.exe /c tst.asm
    Microsoft (R) Macro Assembler Version 6.14.8444
    Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.
    
     Assembling: tst.asm
    

     

    C:\masm32> bin\link16 tst.obj,tst.exe,,,,
    
    Microsoft (R) Segmented Executable Linker  Version 5.60.339 Dec  5 1994
    Copyright (C) Microsoft Corp 1984-1993.  All rights reserved.
    

     

    C:\masm32> tst.exe
    Hello world!
    

    Alternatively, the editor is very configurable. If you open up the menus.ini file for editing (back it up first, I shouldn’t need to tell you that) and change:

    &Assemble ASM file,\MASM32\BIN\Assmbl.bat "{b}"
    

    to:

    &Assemble ASM file,\MASM32\BIN\Assmbl.bat "{b}"
    Assemble ASM file (no COFF),\MASM32\BIN\Assmbl2.bat "{b}"
    

    you can get your new menu item added on IDE restart.

    You also need to copy bin\assmbl.bat to bin\assmbl2.bat and remove the /coff from the latter.

    Then you can compile fine from within the IDE with the new menu option.

    Of course, you’ll have to do the same thing for the link and assemble/link menu items as well. But, now that you know how it’s done, that shouldn’t present a problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with latin chars, here is the code: $stopWords = array('i','a','about','an','and','are','as','at','be','by','com','de','en','for','from','how','in','is','it','la','of','on','or','that','the','this','to','was','what','when','where','who','will','with','und','the','www', 'on',
I have problem with UIWebView delay when the load image from url. In my
I have problem developing with live555. I already build the lib-files and example projects
I have problem while sending messages from android to PC. Messages are send when
I have problem with code. I have written a function for extracting a parameter,
Have problem while getting data from Memcached on .NET MVC solution. I have this
I have problem in my PHP code. I'm trying to make internet shop and
I have the following source for an assembly program that I got in a
I have some x86 assembly code, compiling under MASM32 6.14.8444 (to be precise), and
i have problem to pass data from view to controller , i have view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.