The MASM Forum

Miscellaneous => 16 bit DOS Programming => Topic started by: _japheth on August 13, 2018, 06:56:31 PM

Title: small stub to load and run 64-bit PE binaries in DOS
Post by: _japheth on August 13, 2018, 06:56:31 PM
Hello boys,

I've started to program again a little bit. Since I've abandoned Windoze, I wrote something for good old DOS: a small stub that is supposed to be linked to a "standard" 64-bit PE binary. Then, if you are able to boot DOS in real-mode, it may load the binariy into extended memory and run it.

The API that the binary can use is somewhat "limited", don't expect a nice "Hello world"-MessageBox - you are in text mode. However, the benefits are: you're binary runs in ring 0, thus can do a lot of things that are VERBOTEN in Windoze or Linux. Also, the memory is "identity mapped", so you can easily check if your 64 GB machine HAS indeed such amounts or RAM.

For more details see https://github.com/Baron-von-Riedesel/Dos64-stub



Title: Re: small stub to load and run 64-bit PE binaries in DOS
Post by: hutch-- on August 15, 2018, 03:50:12 AM
What happened to your old avatar ?
Title: Re: small stub to load and run 64-bit PE binaries in DOS
Post by: _japheth on August 16, 2018, 10:08:31 AM
> What happened to your old avatar ?

nickname japheth was already used in Github ( it was most likely me signing up 10 years ago and then forgetting about this ), so I used "Baron von Riedesel", which is also a very nice name. You may shorten it to "Baron", if you like -  a reference to "Huckleberry Finn" with the "Duke" and the "King" .
Title: Re: small stub to load and run 64-bit PE binaries in DOS
Post by: hutch-- on November 06, 2018, 02:45:35 AM
I probably have a copy of your old blue one somewhere.