Friday, July 14, 2017

8086 Programming

How to display a string terminated by $?

TITLE DISPLAY A STRING
.MODEL SMALL
.STACK 32
.DATA
STR1 DB ".....THE KING OF JUNGLE......$"
.CODE
MAIN PROC FAR
MOV AX, @DATA
MOV DS,AX

MOV AH,09
MOV DX, OFFSET STR1
INT 21H

MOV AX,4C00H
INT 21H
MAIN ENDP
END MAIN

0 comments:

Post a Comment