Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: notes version 1.1.10 usg 11/8/83; site ihlpf.UUCP Path: utzoo!linus!philabs!seismo!harpo!floyd!vax135!ariel!houti!hogpc!drux3!ihnp4!ihlpf!dap1 From: dap1@ihlpf.UUCP Newsgroups: net.micro.pc Subject: Non-reentrant DOS interrupts - (nf) Message-ID: <220@ihlpf.UUCP> Date: Thu, 17-Nov-83 17:00:52 EST Article-I.D.: ihlpf.220 Posted: Thu Nov 17 17:00:52 1983 Date-Received: Sat, 19-Nov-83 01:39:58 EST Organization: AT&T Bell Labs, Naperville, IL Lines: 16 #N:ihlpf:17100019:000:887 ihlpf!dap1 Nov 17 17:46:00 1983 Does anyone know how to set up an asynchronous interrupt (i.e., timer) which uses the DOS interrupts internally? The problem comes about since the DOS interrupts are not reentrant due to the fact that they use their own internal stack. If I knew where the DOS stack was, I might be able to save it in my own area and then restore it before I return. There are other problems here too. If I interrupt a DOS routine and don't change the SS register, then if I request a DOS interrupt, that DOS interrupt could change it's own return address. It looks like I have to set up MY own internal stack. The problem is, if I try to use a high level language as the interrupt routine, I can't tell it to use a separate stack. Does anybody have any suggestions??? Darrell Plank BTL-IH