Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Can a DPMI program enter V86M with iretd instruction? (DOSX)

posted by alexfru, USA, 21.01.2023, 03:35

> I played around with lDebugX and the dpmimini example in my local Linux
> box's dosemu2, and found that an iretd (or o32
> iret) which sets the
> VM flag
apparently tries to load a stack pointer from the PM stack, I
> get a Stack fault if this cannot succeed. In case it does succeed, the DPMI
> host apparently returns a General protection fault.
>
> Is it possible to enter V86M using just iretd in DPMI
> protected mode? If yes: How much does the DPMI host get confused by this,
> and can it avoid that?

If you run CWSDPMI in ring 0, you should definitely be able to IRET into virtual 8086 mode. But then you'll also need to prepare things to go back.

Also, real-mode code may be executed in virtual 8086 mode.

What are you trying to achieve?

 

Complete thread:

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