how to use another assemblers like masm v6.x and tasm 5.0 with winasm ide
will it only works with masm32.

plz help me where to change the settings to integrate with other assemblers also.
Posted on 2006-07-21 05:46:51 by sihotaamarpal
I think it supports fasm too.


"WinAsm Studio is a free integrated development environment (IDE) for developing 32-bit Windows and 16-bit DOS programs using Assembly. The Microsoft Macro Assembler (MASM) is supported inherently, while "FASM Add-In" by shoorick adds support for the Flat Assembler (FASM)."
Posted on 2006-07-21 18:19:08 by roticv
hi roticv
.model small


assembling is fine for 16 bit
but linking error,how to solve this

F:\Win32asm\Masm32\Bin\Link /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"F:\Win32asm\Masm32\Lib" "F:\Win32asm\a.obj"

Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

a.obj : warning LNK4078: multiple ".data" sections found with different attributes (C0220040)
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
a.exe : fatal error LNK1120: 1 unresolved externals
Posted on 2006-07-22 05:13:08 by sihotaamarpal
That's because you have to use a 16bit linker.  ;)
Posted on 2006-07-22 19:05:52 by roticv
Be sure to download the help file for WinAsm Studio.

Under help topic "Getting Started", Item 3

If you will be assembling and linking 16-bit DOS programs, you will need a linker other than the one that comes with Masm32.  One that is tested and works well is Link version 5.63 available at Iczelion's web site.  Execute the download in a scratch folder to unpack it.  Take the Link.exe that results from unpacking it and rename it to be Link16.exe, then copy this Link16.exe into the \Masm32\Bin folder.  You should now be able to link 16-Dos program from within WinAsm Studio.

Posted on 2006-07-23 08:02:46 by JimG

_TEXT segment word public 'CODE'

  assume cs:_TEXT,ds:_DATA,ss:STACK
      main proc far          ;entry point
          mov ax,_DATA      ;make ur data segment addressable
          mov ds,ax
          mov dx,offset msg ;offset address of the buffer to be printed
          mov ah,09h        ;request dos to print buffer pointed by ds:dx
          int 21h          ;call dos interrupt service
      xor ah,ah        ;pause
      int 16h
      mov ax,4c00h    ;terminate program with exit code 0
      int 21h         
  main endp 

_TEXT ends

_DATA segment word public 'DATA'
      msg db 'Hello World!$',13,10  ;define byte var
_DATA ends

STACK segment para stack 'STACK'

      db 128 dup (?)
STACK ends

      end main

the following error occurs when i compile the above code,how i fix this error anything wrong in the code

F:\Win32asm\masm32\bin\ML /c /coff /Cp /nologo /I"F:\Win32asm\Masm32\Include" "F:\Win32asm\16bit.asm"

Assembling: F:\Win32asm\16bit.asm
F:\Win32asm\16bit.asm(8) : error A2004: symbol type conflict
F:\Win32asm\16bit.asm(40) : warning A4023: with /coff switch, leading underscore required for start address : main

Make finished. 2 error(s) occured
Posted on 2006-07-23 10:07:21 by AssemblyBeginner
1.commandlines, passed to ml and link, has to be proper. if you do not wish to set them by yourself create new project from template DosExe or DosCom, which go with full winasm studio package. I see /coff switch there: this will produce PE executable. your project (if you create empty project) is not "standart exe" (this mean "win32 exe"), it has to be "dos project" type. use 16-bit linker you have to download it somefrom, rename to link16 and place into masm32\bin folder (near 32-bit linker) your source put in project and compiled successfully and output window message:

d:\masm32\bin\ML /c /I"d:\masm32\INCLUDE" "D:\projects\sh1\16bit.asm"

Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: D:\projects\sh1\16bit.asm

d:\masm32\bin\Link16 @"D:\projects\sh1\link.war"

Microsoft (R) Segmented Executable Linker  Version 5.60.339 Dec  5 1994
Copyright (C) Microsoft Corp 1984-1993.  All rights reserved.

Object Modules [.obj]: D:\projects\sh1\16bit.objj

????????? ?????????. 0 ??????(??) ??????????
Posted on 2006-07-24 00:31:40 by Shoo
hi shoo
i got this problem with ML v8.0 after replacing with ML v6.15 the code assemble and link with error.thks for solving the problem.
Posted on 2006-07-24 03:31:17 by sihotaamarpal