dElmARk Admin
Posts : 92 Join date : 09/04/2012
| Subject: Displaying Message Mon Dec 10, 2012 12:21 pm | |
| - Code:
-
Title "EXP. 4 - program 1" ;This programs displays a string terminated by a $ sign using 21H function 09H
.MODEL SMALL
.DATA MESSAGE DB 'This is the message to be displayed','$' .STACK 200
.CODE MOV AX, @DATA MOV DS,AX MOV DX, OFFSET MESSAGE MOV AH,09H INT 21H MOV AX,4C00H INT 21H END ;Character input with INT 21H, function call 01H ;Character input wothout echo INT 21H, function call 08H | |
|