The easiest way to print out “Hello, World!” in Assembly:-
; 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 msg DB 'Hello, world $' .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 msg ;point to "Hello, world" int 21h ;display "Hello, world" mov ah,4ch ;DOS terminate program function int 21h ;terminate the program END How to Run or Execute ?
- First you need an Assembler : Read This
- Now Open Notepad or any text editor ,copy the above program.
- Save it on the drive you extracted Tasm
for ex :- D:\Tasm Now :-
- D:\>Tasm filename.asm
- D:\>Tlink filename
- D:\>filename
Result :- Hello world
That's it![]()
Let’s start this tutorial :
- .MODEL SMALL
Assembler directive that defines the memory model to use in the program
- .CODE
Assembler directive that defines the program instructions
- .STACK
Assembler directive that reserves a memory space for program instructions
in the stack
- END
Assembler directive that finishes the assembler program



Recent Comments