write a program to print square matrices of ‘x’. The printing job starts with the left-most corner and proceeds in a spiral way. The program should be paused for 10 milliseconds between printing each two symbols. Below are three snapshots of an execution of the program. (Note the edge length of square is an even number.)
TITLE Example of Procedures
INCLUDE Irvine32.inc
.data
symbol= 'x'
delay_time = 10
space = ' '
iterative byte "ITERATIVE",0
recursive byte "RECURSIVE",0
.code
main PROC
; displays "ITERATIVE"
mov dh, 3
mov dl, 12
call gotoxy
mov edx, offset iterative
call writestring
; prints the square using iteration
mov bl, 10 ; top-left x
mov bh, 6 ; top-left y
mov al, 25 ; bottom-right x
mov ah, 21 ; bottom-right y
call spiral_print
; displays "RECURSIVE"
mov dh, 3
mov dl, 32
call gotoxy
mov edx, offset recursive
call writestring
mov dh,3 ;find the size of x
mov dl,29 ;find the size of y
call gotoxy ;go to the start location for recurive
; prints the square using recursion
mov bl, 30 ; top-left x
mov bh, 6 ; top-left y
mov al, 45 ; bottom-right x
mov ah, 21 ; bottom-right y
call spiral_print_recurs
; moves the cursor for "Press any key to continue"
mov dh, 22
mov dl,