Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Unable to return from DPMI real mode callback. (Miscellaneous)

posted by tgr(R), 08.11.2011, 23:15

> > What am I missing? Thanks in advance.
> It might be that you are NOT supposed to "pop" the flags from the real-mode
> stack. This depends on how your callback is called from real-mode. If it is
> just a far call, then you "should" NOT "pop" the flags - that is,
> pRmRegs->sp is to be increased by 4 only, not 6.

Thanks for the quick response.

I have tried incrementing pRmRegs->sp by only 4 but with same result (application seems to hang at end of execution of callback)

Is it correctly understood that the real mode stack is a "raw" copy reflecting a 16 bit environment having 16 bit register pushed to it (meaning it is IP rather than EIP that is on top of the real mode stack)?



Complete thread:

Back to the forum
Board view  Mix view
15275 Postings in 1373 Threads, 253 registered users, 12 users online (0 registered, 12 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum