Algorithm :
Step 1: Start the process.
Step 2: Declare the model as small.
Step 3: Take 100 size stacks.
Step 4: Declare the message to display a sequence of character on the screen.
Step 5: Load the effective address of the message in Dx register.
Step 6: Display and execute the message from Dx register.
Step 7: Return to DOS mode.
Step 8: End of program.
Programming Code :
model small
stack 100h
data
msg db ‘Hello Bangladesh., $’
code
main proc
mov ax, @ data
mov ds, ax
lea dx, msg
mov ah, 9
int 21h
mov ah, 4ch
int 21h
main endp
end main
Output / Result :
Hello Bangladesh.
Process :
Go to run “ Press Windows logo + r ” then type “cmd” and press "Enter".
Then type in dos window:
D:
D:cd masm
D:masm>edit ( Type the programming code and save with .asm.
Exit from masm window )
D: masm>masm filename.asm
D:masm>link filename.obj
D:masm>filename.exe
Then show “Hello Bangladesh.”
Algorithm stand for step by step work. This site will give you basic knowledge about algorithms.
Subscribe to:
Posts (Atom)
Simple and Complete E-commerce PL/SQL Code
This is a Database of e-commerce solution. This database is quite simple but complete one. The script (.sql file) contain all the nece...
-
Algorithm : Step 1: Start the process. Step 2: Declare the model as small. Step 3: Take 100 size stacks. Step 4: Declare the message to disp...
-
1.Algorithm of find the Factorial Number: 1.Start 2. (Input)Read N 3. Set Product=1 Mult=N 4.(Repeat This L...
-
Program Name: Minimum value #include #include int a[12],j,k,n,i,loc; void main() { clrscr(); printf("\r\n How many elements in Array??...