Howdy, Stranger!

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

Categories

TASM help "hello world!"

luckyboyluckyboy Member Posts: 105
[b][red]This message was edited by luckyboy at 2006-10-16 12:59:29[/red][/b][hr]
as mentioned "hello world!"
this is my first program in Assembly Language
By the way TASM means Borland's Turbo Assembler [b]NOT[/b] Telemark Assembler.

i found this example on the web:
[code]
; Turbo Assembler Copyright (c) 1988, 1991 By Borland International, Inc.

; HELLO.ASM - Display the message "Hello World"

; From the Turbo Assembler Users Guide - Getting started

.MODEL small
.STACK 100h
.DATA
HelloMessage DB 'Hello, world',13,10,'$'
.CODE
mov ax,@data
mov ds,ax ;set DS to point to the data segment
mov ah,9 ;DOS print string function
mov dx,OFFSET HelloMessage ;point to "Hello, world"
int 21h ;display "Hello, world"
mov ah,4ch ;DOS terminate program function
int 21h ;terminate the program
END
[/code]
i copy pasted it and some error happens when linking
i used "tasm hello.asm" and found this result
[code]
Assembling file: hello.asm
Error messages: None
Warning messages: None
Passes: 1
Remaining memory: 452k
[/code]
and there is some file called hello.obj appeared in my directory

then, "tlink hello.obj" and got this error
[code]
C:TASMBIN>Turbo Link Version 7.1.30.1. Copyright (c) 1987, 1996 Borland International
Fatal: No program entry point
[/code]
is this because of using Windows XP ?
help me please i use TASM v 5.0


Also, i already know C++ and some C do i need Assembler ?

thanx in advance
luckyboy


Comments

Sign In or Register to comment.