Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

tlink: "Fatal: No program entry point"

I am just getting started with ASM.

Any one have any ideas on why I am getting this error message when I try to link my object code?



Fatal: No program entry point



(with tlink /t i get a diffrent error, but, yeah, I am going for a .com file here)



a.asm

----------------------

.model tiny

.code

.8086

org 100

blah PROC

mov ax,4c00h

int 21h

blah ENDP

end

----------------------

(i have tried many variations, with and with out the .8086 directive, and with/with out org 100, and with out PROC/ENDP)



I am using TASM 4.1, TLINK 7.1.30.1,

under windows 95 osr 2

on an AMD K5 90mhz system



Thank you,

d-range






Comments

  • i changed my code to:

    ----------------

    .model tiny

    .code

    org 100h

    START:

    mov ax,4c00h

    int 21

    END START

    end

    -----------------

    and it linked just fine, but i still do not understand why the other code didn't...

    would it of under MASM?


  • : i changed my code to:

    : ----------------

    : .model tiny

    : .code

    : org 100h

    : START:

    : mov ax,4c00h

    : int 21

    : END START

    : end

    : -----------------

    : and it linked just fine, but i still do not understand why the other code didn't...

    : would it of under MASM?



    first off, "END START" takes the place of "end"; there's

    no need for that 2nd end statement in your code.



    by asking whether it'd work with masm, i assume you mean

    with microsoft's linker? (the assembler itself is irrelevant)

    M$ LINK.EXE version 5.60.339 gives a warning as opposed to

    a fatal error. Borland's TLINK.EXE version 5.1 doesn't

    complain at all. i suppose the newer TLINK fails because

    it's picky and wants you to always specify an entry point.



    entry points are useful if you have a procedure or data at the

    start of your program, and don't want it to automatically

    be executed when the program is run. but there's no reason

    tlink can't just use a default starting point if you don't

    tell it one. oh well..



    [email protected]




  • : first off, "END START" takes the place of "end"; there's

    : no need for that 2nd end statement in your code.



    i figured that one out.

    and thank you for the info, it was a real help.








  • I know that the wau I was taught is that you just put end (at the end) but end blah, even though you already have the blah endp.





    : I am just getting started with ASM.

    : Any one have any ideas on why I am getting this error message when I try to link my object code?

    :

    : Fatal: No program entry point

    :

    : (with tlink /t i get a diffrent error, but, yeah, I am going for a .com file here)

    :

    : a.asm

    : ----------------------

    : .model tiny

    : .code

    : .8086

    : org 100

    : blah PROC

    : mov ax,4c00h

    : int 21h

    : blah ENDP

    : end

    : ----------------------

    : (i have tried many variations, with and with out the .8086 directive, and with/with out org 100, and with out PROC/ENDP)

    :

    : I am using TASM 4.1, TLINK 7.1.30.1,

    : under windows 95 osr 2

    : on an AMD K5 90mhz system

    :

    : Thank you,

    : d-range

    :

    :

    :






    URL:http://www.geocities.com/SiliconValley/Computer/5485

Sign In or Register to comment.