Laaca Czech republic, 11.05.2020, 13:37 |
DPMI code from .COM file? (Developers) |
I am curious whether is possible to call some DPMI code from .COM file. Because if yes it would be easy to f.e. bundle machine-code modules as a payloads into normal real-mode turbo pascal programs. --- |
ecm Düsseldorf, Germany, 11.05.2020, 14:42 @ Laaca |
DPMI code from .COM file? |
> Is possible to convert the code to be compilable not as a .EXE but as a --- |
Laaca Czech republic, 11.05.2020, 14:50 @ ecm |
DPMI code from .COM file? |
> It certainly is possible, but I don't know FASM much and haven't looked --- |
ecm Düsseldorf, Germany, 11.05.2020, 15:07 @ Laaca |
DPMI code from .COM file? |
> You are right! --- |
ecm Düsseldorf, Germany, 11.05.2020, 16:07 (edited by ecm, 18.08.2021, 14:28) @ Laaca |
DPMI code from .COM file? |
Here's a full example (from my lDebug/assorted/tests/ directory, wasn't yet in any repo) that builds a new child PSP from the current PSP, DUPs the file handles to use in the child, sets this child PSP as active, enters protected mode, then returns back to the original process in 86 Mode. (Plus, it shows some callback usages.) It builds with --- |
Laaca Czech republic, 11.05.2020, 22:44 @ ecm |
DPMI code from .COM file? |
Wow! --- |
ecm Düsseldorf, Germany, 11.05.2020, 23:05 @ Laaca |
DPMI code from .COM file? |
> Wow! --- |
ecm Düsseldorf, Germany, 11.05.2020, 14:59 @ Laaca |
DPMI code from .COM file? |
> To narrow the question: --- |
Rugxulo Usono, 13.05.2020, 04:39 @ Laaca |
DPMI code from .COM file? |
> I am curious whether is possible to call some DPMI code from .COM file. |
CandyMan 13.05.2020, 19:53 @ Laaca |
DPMI code from .COM file? |
D3XX dos extender with debugger and examples how to use it with fasm. |