Program to display a 10*10 solid box of asterisks with INT 21H and function 9H

This problem is in charles marut  assembly language book in exercise on chapter 4 …This is 11 number problem

Solution:


 .MODEL SMALL
 .STACK 100H

 .DATA
    SOLIDBOX  DB  '**********',0DH,0AH,'$'

 .CODE
   MAIN PROC
     MOV AX, @DATA                ; initialize DS
     MOV DS, AX

     LEA DX, SOLIDBOX               ; load the string
     MOV AH, 9h                                           

     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
It would be a great help, if you support by sharing :)
Author: zakilive

Leave a Reply

Your email address will not be published.