Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DPMI code from .COM file? (Developers)

posted by Laaca Homepage, Czech republic, 11.05.2020, 22:44

Wow!
It is really impressive. But it is too complicated for me and do not understand the code much.
However - is possible to change the lines 313-314 from "mov ax,4c00h / int 21h" to RETF ?

Why I examine all this stuff - I have a quite nice pascal unit and I am proud that it is a amphiguous code - it compiles in DOS 32-bit Freepascal and 16-bit realmode turbopascal.
I almost always use the Freepascal and 32-bit protected mode but anyway, in this unit I want to keep full compatibility with Turbo pascal.
And in this unit I have a function Get_DPMI_Info.
No problem in FreePascal as I simply call the DPMI function 400h and 401h.
But in Turbopascal we are in real mode but the DPMI server may or may not be installed (although not active in this moment). And it would be nice to get some info about this non-active daemon.

---
DOS-u-akbar!

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 249 users online (1 registered, 248 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum