Re: Real mode int from protected mode and back
- From: gerotica <spamtrap@xxxxxxxxxx>
- Date: Sun, 24 Feb 2008 11:27:10 -0800 (PST)
No, I've already said that. And anyway, how would you pass your R/M ISR its
parameters if you set it to null? ES:EDI must point to a DPMI Registers
structure in protected-mode memory. The values you set in the registers
structure are the values that the R/M registers will have when your R/M ISR
is invoked via the int 31h/0300h DPMI function.
I am saying i can use the buffer i get from int 31h 100h... ***, i
really have to know more about PM...
Now I think I get it.. If I want ax = 0xaa in my ISR I have to write
0xaa in the ax registers structure location... not eax...
And what do you mean by zeroing any unused registers? You mean zero
them all and then rewrite ax and dx (the needed registers) again?
Yes. This enusures you don't pass invalid segments in the segment registers,
or an invalid value in the "reserved" part of the registers structure. It's
the "safe" way to do it.
Ok. I´ll try, thanks
--
Jay
Jason Burgon - author of Graphic Visionhttp://homepage.ntlworld.com/gvision
.
- Follow-Ups:
- Re: Real mode int from protected mode and back
- From: Jason Burgon
- Re: Real mode int from protected mode and back
- References:
- Real mode int from protected mode and back
- From: gerotica
- Re: Real mode int from protected mode and back
- From: Tim Roberts
- Re: Real mode int from protected mode and back
- From: gerotica
- Re: Real mode int from protected mode and back
- From: Tim Roberts
- Re: Real mode int from protected mode and back
- From: gerotica
- Re: Real mode int from protected mode and back
- From: Jason Burgon
- Re: Real mode int from protected mode and back
- From: gerotica
- Re: Real mode int from protected mode and back
- From: Jason Burgon
- Real mode int from protected mode and back
- Prev by Date: Re: Is it possible to address more than 1MB in real-mode
- Next by Date: Re: Real mode int from protected mode and back
- Previous by thread: Re: Real mode int from protected mode and back
- Next by thread: Re: Real mode int from protected mode and back
- Index(es):