* Question about how DOSEMU works
@ 2002-08-13 19:53 complaw
2002-08-13 20:09 ` Bart Oldeman
0 siblings, 1 reply; 2+ messages in thread
From: complaw @ 2002-08-13 19:53 UTC (permalink / raw)
To: linux-msdos
Hi:
I've downloaded the source code for DOSEMU, but was wondering if someone could
help me to look for the code for a specific feature.
I know that DOSEMU does some form of binary translation on instructions from the
DOS application. However, for performance gains, it is usually faster to simply
allow direct (native) execution of the DOS application's instruction. (See,
e.g., http://www.deatech.com/deatech/articles/linux_pc_vc.html ). Does DOSEMU
allow (enable) direct execution of instructions? I presume that all
instructions coming out of the DOS application are trapped. Is that correct?
Does that trap first look at the instruction and, depending on what it is,
simply allow the instruction to be executed (and, if not, do a binary
translation)? If so, where in the source code is that decision logic?
Best wishes,
Ron
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about how DOSEMU works
2002-08-13 19:53 Question about how DOSEMU works complaw
@ 2002-08-13 20:09 ` Bart Oldeman
0 siblings, 0 replies; 2+ messages in thread
From: Bart Oldeman @ 2002-08-13 20:09 UTC (permalink / raw)
To: complaw; +Cc: linux-msdos
On Tue, 13 Aug 2002 complaw@hal-pc.org wrote:
> I know that DOSEMU does some form of binary translation on instructions from the
> DOS application. However, for performance gains, it is usually faster to simply
> allow direct (native) execution of the DOS application's instruction. (See,
> e.g., http://www.deatech.com/deatech/articles/linux_pc_vc.html ). Does DOSEMU
> allow (enable) direct execution of instructions? I presume that all
> instructions coming out of the DOS application are trapped. Is that correct?
> Does that trap first look at the instruction and, depending on what it is,
> simply allow the instruction to be executed (and, if not, do a binary
> translation)? If so, where in the source code is that decision logic?
DOSEMU runs code natively by default. Either using vm86(2) or just by
jumping into it for DPMI. It traps privileged instructions using faults.
Search for cpuemu in the source if you want CPU emulation too.
CPU emulation is also used for planar video mode emulation under X
(for instance vga 640x480x16 colours)
Bart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-13 20:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-13 19:53 Question about how DOSEMU works complaw
2002-08-13 20:09 ` Bart Oldeman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.