QUESTION
TO GENERATE
1
22
333
4444
55555
.........
SOLUTION
MOV SI,2001H ;INITIAL ADDRESS WHERE SERIES GET SAVED
MOV AL,01H
MOV BL,01H
L1:MOV [SI],AL
INC BL
INC SI
CMP BL,AL
JBE L1
INC AL
MOV BL,01H
CMP AL,[2000H] ;SAVE NO.OF ROWS REQUIRED IN THIS LOCATION
JBE L1
HLT
No comments:
Post a Comment