Question : Write a program to display a string "Programming is Fun" in the screen using string displaying function
Solution:
Question: Write a program to display the same string using character reading function (use current address operator $ to count the no of characters)
Read more »
Solution:
TITLE DISPLAY(EXE) STRING USING 09 FUNCTION
.MODEL SMALL
.STACK 64
.DATA
STRING DB 'PROGRAMMING IS FUN$'
.CODE
MAIN PROC FAR
MOV AX,@DATA
MOV DS,AX
CALL DISPLAY
MOV AX,4C00H
INT 21H
MAIN ENDP
DISPLAY PROC NEAR
LEA DX,STRING
MOV AH,09H
INT 21H
RET
DISPLAY ENDP
END MAIN
Question: Write a program to display the same string using character reading function (use current address operator $ to count the no of characters)
تعليقات: 0
إرسال تعليق