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

Print Rectangular Boox – program in assembly language

[su_box title=”Bubble Sort” style=”bubbles” box_color=”#1d318d”]

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

[/su_box]


Output Screen: 

Print Box code in Assembly

 

Find More Assembly Codes Here!

 

 

 

" data-link="https://twitter.com/intent/tweet?text=Print+Rectangular+Box+in+Assembly+Language+%5BNested+Loops%5D&url=http%3A%2F%2Ftheencarta.com%2Fprint-rectangular-box-code-assembly%2F&via=">">Tweet
0 Shares

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here