🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.asm
Article #310

Re: BIOS & Pmode

#310
From: Cyrus W.
Date: Sat, 24 Jun 2000 00:00
19 lines
1665 bytes
As long as your protected mode segment starts at zero you can access the BIOS
data at
400h (*16 the real mode segment value + your offset), chances are though that
you have to create a new descriptor.

Cyrus W.

Beanpole wrote:

> What is the best way to access a BIOS memory location from 32 bit protected
> mode (DPMI)?
> Right now I'm switching from 32 bit pmode to 16 bit real mode, reading the
> necessary locations and returning to pmode.  This seems wasteful.  Is there
> a formula to convert a 16 bit seg:off address to a 32 bit pmode address for
> direct access or do I need to create a descriptor with its base at 40h.  I
> appreciate any accurate info.
> Thanks
> Beanpole
>
Technical Details
Message-ID: <8j3dv1$ua$1@bob.news.rcn.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <sla1bcr4jev149@corp.supernews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: feaef,d1ea95528f27d5ce
X-Google-Attributes: gidfeaef,public
X-Google-Thread: f7d8d,d1ea95528f27d5ce
X-Google-Attributes: gidf7d8d,public
X-Google-Thread: 114917,d1ea95528f27d5ce
X-Google-Attributes: gid114917,public
From: "Cyrus W." <cyrus@aareus.com>
Subject: Re: BIOS & Pmode
Date: 2000/06/24
Message-ID: <8j3dv1$ua$1@bob.news.rcn.net>
X-Deja-AN: 638576928
Content-Transfer-Encoding: 7bit
Approved: <johnfine@erols.com>
References: <sla1bcr4jev149@corp.supernews.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Mozilla-Status: 0801
X-Complaints-To: abuse@rcn.com
X-Trace: 8SS3l9TdX+PqvBPGeKU2RfujbphdqtTBKQxWvOend7E=
X-Apparently-To: clax86@yahoo.com via web1704.mail.yahoo.com
Organization: Aareus Software
X-Track: 1-1: 40
Mime-Version: 1.0
NNTP-Posting-Date: 24 Jun 2000 22:50:09 GMT
Newsgroups: alt.lang.asm,borland.public.tasm,comp.lang.asm.x86