Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

phar lap (Developers)

posted by kerravon, Ligao, Free World North, 06.06.2023, 11:13

> > But unfortunately the method of doing huge pointers
> > effectively hardcodes a 4-bit shift into executables.
>
> VC 1.52 uses "external" constants _AHINCR and _AHSHIFT, that work for both
> real-mode and protected-mode ( assuming that the protected-mode OS uses
> "selector tiling" for blocks > 64 kB ).

Thanks for that information. I was surprised to
see that it works in protected mode.

The generated code I showed above didn't use AHINCR
and didn't look like it would work in PM16.

A search found this somewhat unrelated:

http://www.delphigroups.info/2/ae/107069.html

{ AHincr is 8 in Standard and Enhanced mode, $1000 in real mode.
AHshift is 3 in Standard and Enhanced mode, 12 in real mode (2^AHshift=AHincr) }


It will take some time for me to wrap my head around
this to find out whether I can get huge memory model
DOS executables compiled with Visual Studio 1.52, but
linked with a (modified) PDPCLIB to run under a future
PDOS/286 with selectors appropriately lined up.

And hopefully on PM16 on a 386 those executables would
be able to access much more than 16 MiB of memory.

BFN. Paul.

 

Complete thread:

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