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 Japheth(R) Homepage, Germany (South), 09.11.2011, 05:33

> 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)?

Yes. The Highword of EIP cannot be accessed in real-mode - and it is always 0.

Looking at your code sample, I wonder where register DS is loaded to access global variables ( i.e. cbCount and pRmRegs ). IMO it's very unlikely that the real-mode stack (DS:ESI) and your application's data segment are the same.

MS-DOS forever!


Complete thread:

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