emodel wrote:I just wonder, if Dosbox is slow, its mainly because it has to emulate the main processor (286/386 etc).
So i wonder if it would be possible to make a special version for windows/linux that uses host cpu without emulation. It would probably need to emulate the memory part (protected mode etc) though, even if theres something for this in windows...
There are many technical problems with doing this. It is not possible to just feed the opcodes to the processor - you'd be creating a Windows DOS-box, and that already exists. Idealy, the host-processor would allow 'trapping' of certain commands, i.e. all opcodes you'd need to emulate for one reason or the other could be emulated, and all the rest could be run natively. But unfortunatly, this is also not possible. What's left is dynamic compilation, i.e. analyze the code and produce native code for the processor it runs on. This is possible, but very complicated. Since DOSbox was mainly created for running really old games, this isn't really necessary (although the dynamic core may do something like that, I'm not sure).
JAL