Xref: news2.mv.net comp.os.msdos.djgpp:4450 From: snarfy AT goodnet DOT com Newsgroups: comp.os.msdos.djgpp Subject: Getting pre-interrupt registers under a DPMI hw interrupt? Date: 1 Jun 1996 03:22:39 GMT Organization: GoodNet Lines: 20 Message-ID: <4ood1v$880@news1.goodnet.com> NNTP-Posting-Host: goodnet.com Keywords: interrupt DPMI To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I need to save all of the register values and the flag values that were their before the hardware interrupt occured. Under real mode, I could just save all the registers, then get the correct values for flags, cs, and ip off of the stack. Under DPMI, everything changes. From the code that I have seen from CWS's DPMI, the stack is changed (4k locked stack?) making ss and esp invalid, cs and eip are obviously invalid, and some of the segment registers are changed. (ds and es?). I'm new to protected mode, and to DPMI, and I have no idea how to get the values I need. Do I need to use the DPMI save-state functions? Josh snarfy AT goodnet DOT com p.s. Sorry if you have seen this before. I'm not sure if it get's posted or not. This news server seems a little flaky.