V86 mode

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
chatamballi

V86 mode

Post by chatamballi »

Hi everyone,
I've been trying to execute a V86 task for some
time. This is what I tried -

1. I had a piece of code under [BITS 16] block in
my protected mode code.
2. Made a code selector entry in the GDT pointing
to the 16bit code.
3. Created a TSS pointing to the 16BIT code.
The VM bit in the EFLAG slot was set.
4. Made a TSS selector entry in the GDT pointing
to the TSS.

but jumping in to the TSS selector simply reboots
my computer. Is there anything I am missing out?!!

I will greatly apprecite if someone can help.
regards,
Chatamballi
Post Reply