I am trying to figure out the way to use the nested loop in a proper way but so far i am failed,
The loop run to infinity when i run the program which i definitely don't want to do,
here is my code,
.MODEL SMALL
.STACK 100H
.DATA
var1 DB '*$'
.CODE
MAIN PROC
MOV AX, @DATA ; initialize DS
MOV DS, AX
MOV CX,10
LEA DX, var1 ; load the string
MOV AH, 9
L2:
L1:
INT 21H
Loop L1
DEC CX
JNZ L2
MOV AH, 4CH ; return control to DOS
INT 21H
MAIN ENDP
END MAIN
Where am i doing wrong ?
I am just trying to print * in the pyramid form