Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Memory mapped devices from resl mode (Developers)

posted by marcov, 02.03.2020, 23:13

> With DJGPP the flag is not set by default in __crt0_startup_flags
> (see
> crt0.S),

Yes, and it does JZ after the test 0x80,,
16: testb $0x80, __crt0_startup_flags /* include/crt0.h */

But only if ax=8 int $31 followed by lsl returns -1 (and after incl ebx 0)

> normally you need to call
> __djgpp_nearptr_enable
> (see also
> nearptr.c).

These don't exist in normal Free Pascal programs. It is go32v2 only, not libc. But equivalents for the calls are probably in dpmi* and go32 units, just not as many of the symbolic constants.

But this is all 20 years ago for me :-)

 

Complete thread:

Back to the forum
Board view  Mix view
22756 Postings in 2121 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum