Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100H
- .DATA
- MSG DB "Limit: $"
- MSG1 DB 10,13, "Array: $"
- .CODE
- MAIN PROC
- MOV AX, @DATA
- MOV DS, AX
- LEA DX,MSG
- MOV AH,9
- INT 21H
- MOV AH,1
- INT 21H
- MOV BL,AL
- MOV CL,'1'
- LEA DX,MSG1
- MOV AH, 9
- INT 21H
- TOP:
- MOV AH,2
- MOV DL,CL
- INT 21H
- INC CL
- CMP BL,CL
- JL EXIT
- JMP TOP
- EXIT:
- MOV AH,4CH
- INT 21H
- MAIN ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement