CyberPsychotic wrote:
> I was coding some kind of emulator like thing and came to the need to run
> a piece of binary code in 8086 mode. (no DOS ints. a coulpa of BIOS ones),
> I 've read in some book that it could be possble to switch 486 processor
> to run certain task in 8086 mode I wonder if that's possible to do this
> from within a C code? (actually I don't remember what book I have seen it
> in, so I am unable to gather additional information).
You need to use virtual mode. I don't know how straightforward it is
to do this from C. You could look at the DOSemu code; that uses
virtual mode.
I suspect that you will need a book on the 386 family. The yellow one
from Microsoft Press is actually quite good.
Also, you will need to ensure that calling the BIOS functions doesn't
do anything which will confuse the kernel (e.g. changing the state of
any hardware).
--
Glynn Clements <[EMAIL PROTECTED]>