is this correct for setting 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
asdfgh
Member
Member
Posts: 42
Joined: Fri Apr 18, 2008 9:14 pm

is this correct for setting v86 mode

Post by asdfgh »

.global _v86
_v86:
pushfw
pop %eax
or $1<<17,%eax
push %eax
popfw
ret

at\t syntax
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: is this correct for setting v86 mode

Post by AJ »

No - you need to set up a task and switch to that. v86 mode always runs in ring 3, therefore you need some method (system call, scheduler interrupt) to get back to protected mode again too.

Cheers,
Adam
Post Reply