Re: Real mode int from protected mode and back



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

.


Quantcast