From: NoEmailAds AT execpc DOT com (Chris Giese) Newsgroups: comp.os.msdos.djgpp Subject: Handle software interrupts with DPMI Date: Mon, 24 Sep 2001 03:14:16 GMT Organization: PROPULSION GROUP X-Newsreader: Forte Free Agent 1.11/32.235 Lines: 12 Message-ID: <3baea508$0$1521$272ea4a1@news.execpc.com> NNTP-Posting-Host: 31181684.news.execpc.com X-Trace: DXC=JlineVdo7^1Ifo[]WjGj96>Wd]eNKISH60ICGTaT\Bl==EV;d7?Dn`=_md?7I3`fA9=CX3hleRV`>kFB6i5VV8X? X-Complaints-To: abuse AT execpc DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Suppose I want to write a DOS (DPMI) program to run Linux apps. This program must handle the Linux syscalls (INT 80h). I can write a DJGPP program that issues and handles software interrupts, but how do I get the values of the registers when the INT instruction occured? Are they pushed onto the stack, available to the handler function? -- geezer@ | http://www.execpc.com/~geezer/osd execpc.com | http://www.execpc.com/~geezer/os