Article View: alt.lang.asm
Article #321Re: DPMI & BIOS
From: Daniel M. Pfeffer
Date: Sun, 28 May 2000 00:00
Date: Sun, 28 May 2000 00:00
32 lines
1975 bytes
1975 bytes
"Beanpole" <beanpoleDEL@sprynet.com> wrote in message news:8gr5nk$pd7$1@bob.news.rcn.net... > I know we can't call DOS functions directly from pmode. Mouse services (int > 33h) and VESA (BIOS int 10h) calls work but the VESA spec says you can do > this and the mouse functions are called from a loaded driver. > > Is it safe to call other BIOS functions directly from protected mode under a > DPMI server? > The keyboard services, such as int 16h, function 0 and int 16h, function 1 > seem to work fine. > Beanpole It depends on your DPMI server. Most servers work with arbitrary register-based DOS and BIOS APIs (those accepting no pointers). Consult your DOS extender's documentation for support for pointer-based APIs. If you need to use an unsupported pointer-based API, you can use it as follows: Allocate a DOS memory block (DPMI function 0100) Fill the memory block with data using the returned selector Call the real-mode API (DPMI function 0300h), passing the segment address of the memory block Read any data from the memory block using the selector address Release the DOS memory block (DPMI function 0101) Daniel Pfeffer
Technical Details
Message-ID:
<sj2ih7qa5pj167@corp.supernews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8gr5nk$pd7$1@bob.news.rcn.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7d8d,127082bccdec1464 X-Google-Attributes: gidf7d8d,public X-Google-Thread: feaef,127082bccdec1464 X-Google-Attributes: gidfeaef,public X-Google-Thread: 114917,127082bccdec1464 X-Google-Attributes: gid114917,public From: "Daniel M. Pfeffer" <pfefferd@nospam.internet-zahav.net> Subject: Re: DPMI & BIOS Date: 2000/05/28 Message-ID: <sj2ih7qa5pj167@corp.supernews.com> X-Deja-AN: 628295107 Approved: ccrayne@pacific.net (comp.lang.asm.x86) References: <8gr5nk$pd7$1@bob.news.rcn.net> Organization: Verio X-MSMail-Priority: Normal X-Priority: 3 X-Track: 1-1: 40 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Newsgroups: alt.lang.asm,borland.public.tasm,comp.lang.asm.x86 X-Complaints-To: newsabuse@supernews.com