Calling Real Mode interrupts from PMODE

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Knicos

Calling Real Mode interrupts from PMODE

Post by Knicos »

I need to call the VESA Video Bios interrupt (0x10). I know i am going to have to go into V86 mode to do this (i am currently in PMODE). The problem is that all examples assume that I want to make an entire v86 task, when all i really want to do is call an interrupt.

I have tried to create a PMODE interrupt that will then switch to v86 and call the correct interrupt (using values in the real mode IVT), but its just not working. Is it possible to switch to v86 without creating a new task? If so how?

I have seen that DPMI mentions doing just that, but I cannot find any implementations that actually do it.

Thanks
Anton

RE:Calling Real Mode interrupts from PMODE

Post by Anton »

Well, you could switch back to real mode, call your interrupt, and then switch back to Pmode.

Anton
PS. BTW, for these things an undocumented instruction is usualy used LOADALL
Post Reply