pouët.net

Go to bottom

DOSBOX 64-bit switching

category: general [glöplog]
 
If I'm running DOSBOX on 64-bit Linux, can I write code inside that DOSBOX that actually switches the processor into 64-bit mode? Just like on the real thing?
(I'm reminiscing about extenders for DOS back in the day, which let you get into 32-bit, and have a small "OS" and all, from DOS....)

Or if not DOSBOX, will one of the other Emu-thingies do it? (like Qemu or whatever?) Which one?

And is there a way to let DOSBOX use all the CPU of the actual machine, like, the Linux system?


I have no idea why I'm asking all this, other than that it occurred to me.
http://ykhwong.x-y.net/

seems no CPU support. erase da Linux xD
added on the 2016-11-05 12:36:48 by g0blinish g0blinish
I don't think the Dosbox CPU emulator has 64-bit support. If it had, you could enter long mode in the same way you do it on a real cpu, i.e. http://wiki.osdev.org/Setting_Up_Long_Mode. Most popular VM software (e.g. Virtualbox) support 64-bit though.
added on the 2016-11-05 13:42:28 by absence absence
Dosbox is an emulator, it emulates the CPU and the hardware. So, it can't access your real hardware. It can even run on ARM or PowerPC machines and still emulate an x86 CPU.

If what you are after is the small file size of .COM files, I would suggest https://www.tablix.org/~avian/blog/archives/2016/08/linux_loader_for_dos_like_com_files/
BB Image
(and what PulkoMandy said. DOSBox does not run the emulated code directly on your CPU, hence there is no such thing as switching into 64-bit mode too)

login

Go to top