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.
Hello every body i'm trying to write vm8086 program
it run very good i use int 0x10 i know it should go to
#Gp handler and thats happen the problem when it back
from #GP handler **0x10 handler doesn't run but #GP handler still
repeat himself
that is my code
When the #GP runs again, what instruction is it pointing to?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Hello
#Gp point the same address
instruction is : 0xCD
value is : 0x10
which my program has it
/*****************/
i think you want to be sur if my program chang ip and cs
in regs be sur that's happen because my program
print values from regs.eip and regs.cs
the values of this regs are differnet, it's not my
program ip and cs
/*****************/
sorry for my english
ahmedhalawa wrote:Hello
#Gp point the same address
instruction is : 0xCD
value is : 0x10
which my program has it
0xCD 0x10 is simply the mentioned "INT 0x10" instruction. You said that raises a GP (huh?), which you handle, then you return from the handler to the old faulting address again. Then, not very surprising, "INT 0x10" raises the GP again, which you handle, then you return from the handler to the old faulting address. Then, not very surprising, "INT 0x10" raises the GP again... I think you got it by now?!
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Sorry for re open this topic
I had write vm86 code then i tried it and it's work finaly
after 2 days without change any of code
it bochs and my pc give me #gnf in int 0x10
at this address 0xC000:0xFFFF
Bochs msg is
Question for you: what is the instruction pointer doing there? How does it get there? Is the bios actually mapped?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
I had write vm86 code then i tried it and it's work finaly
after 2 days without change any of code
it bochs and my pc give me #gnf in int 0x10
Mr. Combuster or my best man
first pages from 0x00000000 to 0x00200000 mapped in to the same
address there some thing else it's happen after 40 instruction
exact after ret instruction May it happen because i put bad stack address then bois out bad values i donn't think so
i attachment gpf.cpp code you can look to it then give me reason