| | |
How could I break an infinite loop??
Thread Solved |
•
•
Join Date: Apr 2007
Posts: 16
Reputation:
Solved Threads: 0
Hi guys again,
If I have an infinite loop for example:
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
If I have an infinite loop for example:
Assembly Syntax (Toggle Plain Text)
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
•
•
Join Date: Apr 2007
Posts: 16
Reputation:
Solved Threads: 0
Thanks, it works Int 16, Ah = 01
I have witten this code in my program and it works
Thanks man alot.
I have witten this code in my program and it works
Assembly Syntax (Toggle Plain Text)
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.
![]() |
Similar Threads
- Any keyword to break or continue a LOOP like as in C "break","continue" keawords?? (PHP)
- XP Startup Problem: Infinite Loop (Windows NT / 2000 / XP)
- How do you Terminate an Infinite Loop? Impossible!!! (C++)
- infinite loop... (C++)
- Infinite Loop in the switch statements (C++)
- infinite loop (C++)
Other Threads in the Assembly Forum
- Previous Thread: Need help with 8086 assembly language
- Next Thread: How to clear keyboard buffer?
| Thread Tools | Search this Thread |






