Re: Real mode int from protected mode and back
- From: "Jason Burgon" <spamtrap@xxxxxxxxxx>
- Date: Sun, 24 Feb 2008 11:46:37 GMT
"gerotica" <spamtrap@xxxxxxxxxx> wrote in message
news:548887fd-9256-42c2-8273-2daa41ae62ba@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Great... I can use the dos memory block to pass the parameters...
Can ES:EDI pointer to registers structure be null?
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.
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.
--
Jay
Jason Burgon - author of Graphic Vision
http://homepage.ntlworld.com/gvision
.
- Follow-Ups:
- Re: Real mode int from protected mode and back
- From: gerotica
- 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
- Real mode int from protected mode and back
- Prev by Date: Re: Real mode int from protected mode and back
- Next by Date: Re: Is it possible to address more than 1MB in real-mode
- 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):
Relevant Pages
|