Print Rectangular Box in Assembly Language [Nested Loops]

0

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!

Leave A Reply