Advertisement
Nahid8195

Lab 4(Write a program to PRINT 10*10 ASTARIC

Oct 28th, 2021
2,947
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;   Write a program to PRINT 10*10 ASTARIC
  2.  
  3.  
  4. .MODEL SMALL   ; IN THIS COURSE ALL MODEL ARE SMALL
  5. .STACK 100H    ; WE ALWAYS USE STACK 100H
  6.  
  7.  
  8. .DATA     ; DATA SEGMENT
  9.  
  10.     STARS DB 0AH,0DH,"********$"     ; to print the line  asstaric 10*10 we store 10 dtsrt here
  11.    
  12.    
  13. .CODE
  14.  
  15.     MAIN PROC   ; main code start here
  16.  
  17.     ;PROGRAMME SEGMENT PREFIX
  18.     MOV AX,@DATA
  19.     MOV DS,AX    ; INITILATION OF DS
  20.  
  21.     MOV AH,9     ; the function will use to print string
  22.     LEA DX,STARS ; this print the str value
  23.     INT 21H      ; make this computer to do
  24.     INT 21H      ; make this computer to do
  25.     INT 21H      ; make this computer to do
  26.     INT 21H      ; make this computer to do
  27.     INT 21H      ; make this computer to do
  28.     INT 21H      ; make this computer to do
  29.     INT 21H      ; make this computer to do
  30.     INT 21H      ; make this computer to do
  31.     INT 21H      ; make this computer to do
  32.     INT 21H      ; make this computer to do
  33.  
  34.     MOV AH,4CH   ; TERMINATED THE CODE AND EXI
  35.     INT 21H
  36.  
  37.     MAIN ENDP
  38. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement