Results 1 to 5 of 5

Thread: Having trouble linking...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    122

    Angry

    I am using Masm32 and am pretty new to Assembly, but I am having trouble trying to assemble and link this code:

    Code:
    ;Io1.asm:  Displays character that is entered on the keyboard
    
        .model small
        .stack 100h
    
        .code
    start:
        mov ah,1h       ;character input sub-program
        int 21h         ;call ms-dos to read character
                        ;al now contains character from keyboard
        mov dl,al       ;read character from register al
        mov ah,2h       ;character output sub-program
        int 21h         ;call ms-dos to display character
    
        mov ax,4c00h    ;return to ms-dos
        int 21h
        end start
    I keep getting an error message that says "LINK : error lnk2001: unresolved external symbol _start"

    Please help...this is driving me crazy!!!!

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    122
    Anyone? please??

  3. #3
    New Member
    Join Date
    Sep 2000
    Location
    Sweden
    Posts
    11

    Thumbs up When is masm made? 92?

    Use Pass32 instead you don't have to link and compile all
    U have to do is to run the asm file with pass and u get a
    Exe (or what ever u want) + Win32 exe and Win32 Dll. It's simple and good.

    Microsoft never wanted anybody to know their Windows in assembler, that's why they stopped making MASM.
    And give out VB and C++ instead. So that they can keep their
    Deepest Windows Secrets.

    Pass32 http://www.geocities.com/SiliconValley/Bay/3437/ Get the pdf Manual at the same site
    Assembler is more then a Language, it's a Religion

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Actually, MS still distribute MASM as part of the Windows DDK (Driver Development Kit).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Junior Member
    Join Date
    Jun 2000
    Posts
    28
    For a start, rename labels "_start" and "end _start"
    After that (in my version anyway) you get more problems since you can't use interrupts in win32 programs. Try using a 16 bit assembler, or type it straight into DOS's debug program.
    Here is a good site for win32 assembly: http://freeshell.org/~michael/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width