Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,720 Programmers for FREE! Ask your question and get quick answers from experts. There are 2,128 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Basic asembley

 
Reply to this topicStart new topic

Basic asembley, Cant get it to compile into a exe

Clearman
post 10 May, 2008 - 05:53 PM
Post #1


New D.I.C Head

*
Joined: 13 Dec, 2007
Posts: 48


My Contributions


I downloaded this:Assembler IDE
http://www.download.com/Assembler-IDE/3000...cdlPid=10745829

And am learning from this guide:
http://www.geocities.com/siliconvalley/par...m/asml1001.html

I put the example code into the compiler compiled it under:"compile TASM code"
The output was two files with a .map and a .obj extension.
Then i go into command line change directory's accordantly and place this command :"tlink /t myprog"
Noting happens.
How do i make this code into a executable file.

CODE

ideal
p286n
model tiny

codeseg
   org 100h
   jmp start

; your data and subroutine here

start:
   mov ax, 4c00h
   int 21h
end

Or if you have a tutorial for assembly please drop a link. (32 bit)
If you have an idea of what compile i should be using please say.
Thanks for any help.
Also sorry about my english smile.gif .

This post has been edited by Clearman: 10 May, 2008 - 05:54 PM
User is offlineProfile CardPM

Go to the top of the page


no2pencil
post 10 May, 2008 - 07:36 PM
Post #2


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 4,950



Thanked 27 times

Dream Kudos: 2325

Expert In: Goofing Off

My Contributions


As this page points out, you should feed tlink the obj file, & not your file name.

QUOTE

Fourth step

Use the TLINK program to build the executable program example:

C:\>tlink exam1.obj
Turbo Link Version 3.0 Copyright © 1987, 1990 Borland International


I hope that this is helpful to your situation.
User is offlineProfile CardPM

Go to the top of the page

Clearman
post 11 May, 2008 - 03:59 AM
Post #3


New D.I.C Head

*
Joined: 13 Dec, 2007
Posts: 48


My Contributions


I went through the steps and got stuck on step 4 with an error.

QUOTE

C:\Documents and Settings\*****\Desktop\New Folder>tlink myprog.obj
Turbo Link Version 7.1.30.1. Copyright © 1987, 1996 Borland International
Fatal: No program entry point


I used the same code in the example :
CODE

; use; to put comments in the assembler program
.MODEL SMALL; memory model
.STACK; memory space for program instructions in the stack
.CODE; the following lines are program instructions
mov ah,1h; moves the value 1h to register ah
mov cx,07h;moves the value 07h to register cx
int 10h;10h interruption
mov ah,4ch;moves the value 4 ch to register ah
int 21h;21h interruption
END; finishes the program code


EDIT:Never mind figered it out from this page:http://forums.devshed.com/other-programming-languages-139/fatal-no-program-entry-point-454993.html

Thanks for the help no2pencil could not have done it with out you icon_up.gif .

This post has been edited by Clearman: 11 May, 2008 - 04:14 AM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/8/08 09:26AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month