0

Hi guys again,
If I have an infinite loop for example:

MOV CX, 240
           MOV DX, 320
 
HERE:  MOV AH, 2CH
           INT 21H
           CMP DH, 1
           JE DOT
           MOV AX, 0C00H
           INT 10H
DOT:    MOV AX, 0C04H
            INT 10H
            JMP HERE

In the example I have an infinite loop. I want to break this, however, I don't want to stop it functionality ( plups every 60 seconds) ...

int 21, ah = 01 will stop the loop untill you press any key.
As I said I don't stop the loop, I wanna keep it working untill someone press ESC for example...

So, if any idea please tell me about it.
Thanks in advance

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by eeeraser
0

Thanks, it works Int 16, Ah = 01
I have witten this code in my program and it works

START:  MOV AH,01
 INT 16H
 CMP AL, 0DH
 JNE GOAGAIN
 POP AX
 MOV AH, 00H
 INT 10H
 MOV AX, 4C00H
 INT 21H
 
GOAGAIN: mov ah,02
              INt 1Ah
                 -
                 -
                 -
to the end of the loop and it comes again back to START.

Thanks man alot.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.