Re: Real mode int from protected mode and back



In article <8f8441cd-8088-4b51-b74e-23c421429a51@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
spamtrap@xxxxxxxxxx "gerotica " writes:

I made the int 61h call directly from the code, without DPMI 31h 300h.
Worked fine. I couldnt believe it. Even the file routines are ok. I
can log outs and ins and maniulate them as i want.
Now the only problem I have is to pass the in result to the main
application through ax. I think you all already know the problem...
pop ax before iret would destroy it.

[snip ISR code]

If you are the only guy invoking int 61h (which I suspect is the
case) simply _don't_ push/pop AX in your handler. You will be
expecting AX to have changed anyway.

Pete
--
"We have not inherited the earth from our ancestors,
we have borrowed it from our descendants."

.