In this program, we will print a rectangular box.  We will use nested loops in this code.

Print Rectangular Boox – program in assembly language

Bubble Sort

org 100h

.data
str db 0Ah,0Dh,”$”
x db 5

.code
Top:
mov cx,5

l2:
mov ah,2
mov dl,’x’
int 21h
loop l2

mov ah,9
lea dx,str
int 21h

dec x
cmp x,0
jne top

ret



Output Screen: 

Print Box code in Assembly

 

Find More Assembly Codes Here!

 

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.