News:

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

Beginner question

Started by hyperspacez, March 24, 2005, 04:19:07 PM

Previous topic - Next topic

hyperspacez

Hi All,
I am starting in assembly, and I installed MASM32 and built the library's when prompted. However I can not compile any code, recieving this error each time I do:

(the program)
MAIN  SEGMENT
      ASSUME CS:MAIN,DS:MAIN,ES:MAIN,SS:MAIN

      ORG 100h

START:
  MOV AH,02h
  MOV DL,41h
  INT 21h

  JMP EXIT

  MOV AH,02h
  MOV DL,42h
  INT 21h

EXIT:
  INT 20h

MAIN ENDS
END START

(compile error)
Assembling: C:\masm32\file.asm
C:\masm\file.asm(21) : warning A4023: with /coff switch, leading underscore required for start address : START
Volume in drive C has no label.
Volume Serial Number is 794E-224E

Linking seems to go fine. When I try to assemble and Link or do build all, I get:

LINK : error LNK2001: unresolved external symbol _START
file.exe : fatal error LNK1120: 1 unresolved externals
_

Link error


Anyone know the resolution to this? I tried to resintall MASM32 to no avail.
Thanks in advance.

Tedd

This is 16-bit code.
Masm32 is (surprisingly) for 32-bit code :bg

Either try with 32-bit code, or post in the 16-bit DOS forum :wink
No snowflake in an avalanche feels responsible.

roticv

Same old problem. I think you should be using a 16bit linker (Search the forum, there are many threads on that).