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 mainOutput / 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.”