Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old June 25th, 2007, 08:00 AM
Xing Xing is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 2 Xing User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 43 sec
Reputation Power: 0
Assembly - Fatal:no program entry point

I tried following code in Borland Turbo Assembler 5.0
Code:
 .MODEL SMALL; 
 .STACK; 
 .CODE; 
 mov ah,1h; 
 mov cx,07h;
 int 10h;
 mov ah,4ch;
 int 21h;
 END; 

It assembled fine with no errors but when I tried to link it with tlink, it gave a fatal error saying "Fatal:no program entry point"

Reply With Quote
  #2  
Old June 26th, 2007, 06:14 AM
salem's Avatar
salem salem is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2005
Posts: 1,609 salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Day 17 h 12 m 21 sec
Reputation Power: 276
Read the manual help to see what that error means.

Search the web with the text of your error message. You will not be the first ever person to see that message.

Maybe
Code:
 .global start;
 .CODE; 
start:
 mov ah,1h; 

Though you might have to read up on
- the syntax of the pseudo-op which introduces global symbols
- the syntax of how symbols are specified
- the actual name of the default entry point.
All of which are somewhat assembler specific.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Reply With Quote
  #3  
Old June 27th, 2007, 12:15 AM
Xing Xing is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 2 Xing User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 43 sec
Reputation Power: 0
Thanks.
Adding
Code:
start: 
......
end start;

solves the problem.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Assembly - Fatal:no program entry point


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway