Write an assembly language program that prints your full name on the screen.
Please use the name "Levin Fi"
Assembler Listing |
Screen Shot of the Output area of the Pep8 program. |
To Write an assembly language program that prints your full name on the screen.
CODING
.MODEL SMALL
.STACK 100H
.DATA
;The string to be printed
STRING DB
'Levin Fi'
,
'$'
.CODE
MAIN PROC FAR
MOV AX,@DATA
MOV DS,AX
; load address of the string
LEA DX,STRING
;output the string
;loaded in dx
MOV AH,09H
INT
21H
;interrupt to
exit
MOV AH,4CH
INT
21H
MAIN ENDP
END MAIN
COMMENTS OR EXPLANATION :
OUTPUT :
Levin Fi
Note : Run the program in the MASM and use dos box to run MASM, you might also use any 8086 emulator to run the program.
Get Answers For Free
Most questions answered within 1 hours.