TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: SYLVAIN LAUZON
from: IAN MOOTE
date: 1997-04-09 09:02:00
subject: critical dos flag

-> I need some hint! Inside an interrupt handler i did the following.
-> sti 
-> mov ah,34h 
-> int 21h 
-> mov dl,es:[bx] 
-> cmp dl,01h 
-> je not_safe ....
[...]
-> The tsr seem to work fine until i type few keys and lock up very
-> hard! I wonder what wrong i did?
Your code thinks that it's unsafe to call Dos only when the InDos flag 
is 01h. This is a logical error. It's actually unsafe to call Dos when 
the InDos flag is anything but zero. Try this:
   CMP DL, 00h
   JNE not_safe
Take care.
 ** Dyslexia: it can warn without striking!
--- PCBoard (R) v15.3/M 5
---------------
* Origin: The GameBoard BBS-905ú689ú3982/9409-BurlingtonúONúCA (1:244/506)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.