Date: Sat, 29 Oct 1994 09:27:56 -0500 (CDT) From: Aaron Ucko Subject: Re: accessing real mode regs from gcc To: mark AT samson DOT demon DOT co DOT uk Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Organization: Rockhurst College; Kansas City, MO >I have recently started using gcc and I am converting a MSC program >to run under protected mode so that I may do some extended memory >addressing. Fine, but this program uses routines in a commercial TSR >via interupt 80h and causes a segmentation fault. I'm told >this is because a different interupt vector table is used when in >protected mode. So the question is what are the magic incantations >required to convert these int86x calls - given my ignorance of >Intel/DOS arcane ? > >For example, the following is a fragment of the MSC version:- [deleted] >What are the equivalent _go32 calls or do I have to switch back to >real mode somehow ? int _go32_dpmi_simulate_int(int vector, _go32_dpmi_registers *regs); --- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp! -=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=- Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ U-(S+)>++++ P+ L>++ 3(-) E-(----) !N>++ K- W(--) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?