An Assembly Language Program to display a 10*10 solid box of asterisks with INT 21H and function 9H .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
.MODEL SMALL .STACK 100H .DATA SQUARE DB '**********',0DH,0AH,'$' .CODE MAIN PROC MOV AX, @DATA ; initialize DS MOV DS, AX LEA DX, SQUARE ; load the string MOV AH, 9 INT 21H INT 21H ; display the string 10 times INT 21H INT 21H INT 21H INT 21H INT 21H INT 21H INT 21H INT 21H MOV AH, 4CH ; return control to DOS INT 21H MAIN ENDP END MAIN |