www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/02/22:05:43

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: dpmi_nearptr_enable()
Date: Sun, 29 Jun 1997 15:45:26 +0100
Organization: None
Distribution: world
Message-ID: <ESRiwDAGUntzEwtP@talula.demon.co.uk>
References: <33B64AEF DOT 2769 AT wanadoo DOT fr>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 31
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Alan & Vivien Poppleton writes:
>       Does the dpmi_nearptr_enable() work under windows NT?

No.

>       I am also trying to use the VESA protected mode bankswitching 
>routine, how do I do it?

All the info you need is in the VESA spec, although it's not very
detailed. It might also be useful to look at the vesa.c file from
Allegro...

>       I know how to call the real mode bank switching rountine, but 
>how can I translate this address into protected mode, and how do i call 
>it?

You don't do it like that: the protected mode bank switch mechanism is
totally different from in real mode. Call int 0x10, ax=0x4F0A, and the
VESA driver will return you a block of relocatable code which you can
copy into your address space and then call directly from your 32 bit
program.

>       Is the protected mode bank switch only a property of vesa 2.0? 
>Or does it also work with vesa 1.2?

It requires VBE 2.0.


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019