BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 50d, 14h, 17m | CPU: 26% | MEM: 5535MB of 12227MB used
{The community for beta collectors}

Forum rules


Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 PostPost subject: Help with TASM & TLINK        Posted: Sat Aug 30, 2008 7:19 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Thu Aug 31, 2006 2:45 pm

Posts
1432

Location
UK

Favourite OS
Longhorn 4074
All right, i'm not learning assembler but i just wanted to compile simple code... I've downloaded a pack that came with TLINK 7.1 and TASM 4.1 and i was doing everything like the readme file said, that was just
Code:
tasm test.asm

what was propably ok, didn't noticed any error and i came up with TEST.OBJ file. Than:
Code:
tlink /x /3 test.obj

and what i get is "Fatal: No program entry point"

I've tryed also with TASM32 and TLINK32 but that just gave another error... Do i use wrong version of TASM or something?


Top  Profile  WWW
 PostPost subject:        Posted: Sun Aug 31, 2008 12:34 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Fri Sep 01, 2006 10:04 pm

Posts
1022

Location
The Ephemeral between existance and non-existance: AKA "being"

Favourite OS
Rhapsody, BeOS
Can you please copy and paste the code. I have never used TASM but I remember having similar problems...

It seems that no program starting point was specified. If this is the case, you need to add an "END" to to whatever start point you were using...

Code:
Entry:
Your Code
END Entry;



Alternatively, try FASM then I could probably help more...

_________________
Image
Part Time Troll - HPC Enthusiast - Spelling Master - Old Fart


Top  Profile  WWW
 PostPost subject:        Posted: Sun Aug 31, 2008 11:18 am 
Reply with quote
Donator
User avatar
Offline

Joined
Thu Aug 31, 2006 2:45 pm

Posts
1432

Location
UK

Favourite OS
Longhorn 4074
That's the code i've found here:
Code:
; BOOT.ASM : By Vivek Mohan
; =========================
;
; tasm   boot.asm
; tlink /x /3 boot.obj

 _Text SEGMENT PUBLIC USE16
  assume CS:_Text, DS:_Text
  org 0

; This is the entry point for the program

Entry:
  db   0EAh  ; jmp far SEG:OFS  ; Currently we are at 0:7C00
  dw  OFFSET AfterData, 7C0h    ; This makes us be at 7C0:0

 ; Our Message to the world
 ; ========================

 HelloWorld db "Hello World !!",0 ;

 AfterData:
   push CS
   pop  DS     ; update DS to be 7C0 instead of 0

 ; Display Hello World
 ; ===================

  mov si , OFFSET HelloWorld
  do:
  mov AL, DS:[SI]
  inc SI
  or AL, AL
  jz done;
  mov BX, 0
  mov AH, 0Eh
  int 10h
  jmp do;
  done  : ;

 ; OK We have displayed the message
 ; ================================

  jmp $    ;

 ; Hang the system
 ; ===============

 ; Make the file 512 bytes long
 ; ============================
 org 510   
 
 ; Add the boot signature
 ; ======================

 dw 0AA55h 

  _Text ENDS
  END


I guess assembler just doesn't like me :D


Top  Profile  WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 




Who is online

Users browsing this forum: LarryTN7722 and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2018

 

Sitemap | XML | RSS