Article View: comp.os.ms-windows.programmer.misc
Article #2057Re: SUMMARY: accessing real mode memory
From: "Malcolm S. Muir"
Date: Sun, 15 Nov 1992 16:49
Date: Sun, 15 Nov 1992 16:49
26 lines
1743 bytes
1743 bytes
In article <1992Nov11.095107.6433@rhrk.uni-kl.de> baum@kirk.es.go.dlr.de writes: >Hi! > >I originally posted a question on accessing real mode memory (the first MB) >directly. This is needed to read/write to memory located on add on boards >as frame grabbers grafics cards, etc. The solution is relatively simple and >was supplied to me first by nar@math.wayne.edu (Mark Narduzzi) and then by >brad@huey.jpl.nasa.gov for use with Borland C++ 3.1. > >The Windows kernel supplies selectors for 64KB size memory pages, which are >called __A000H, __B000H, ... These are used in the following manner to access >memory D0000-DFFFF: > >extern WORD _D000H; >LPBYTE fp = MAKELONG(0, &_D000H); There is also a _0000H, _0040H and _ROMBIOS - very useful... -- ============================================================================= Malcolm S. Muir EMAIL: malcolm@muir.demon.co.uk Sunderland CIX: mmuir BIX: mmuir England CSERVE: 100012,31 ======================= PGP 2.0 Public Key Available ========================
Technical Details
Message-ID:
<721846185snz@muir.demon.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!think.com!spool.mu.edu!wupost!cs.utexas.edu!convex!news.utdallas.edu!corpgate!bnrgate!bnr.co.uk!pipex!demon!muir.demon.co.uk!malcolmReferences:
<1992Nov11.095107.6433@rhrk.uni-kl.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!think.com!spool.mu.edu!wupost!cs.utexas.edu!convex!news.utdallas.edu!corpgate!bnrgate!bnr.co.uk!pipex!demon!muir.demon.co.uk!malcolm
From: malcolm@muir.demon.co.uk ("Malcolm S. Muir")
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: SUMMARY: accessing real mode memory
Message-ID: <721846185snz@muir.demon.co.uk>
Date: 15 Nov 92 16:49:45 GMT
References: <1992Nov11.095107.6433@rhrk.uni-kl.de>
Sender: usenet@gate.demon.co.uk
Reply-To: malcolm@muir.demon.co.uk
Organization: Muir
Lines: 26
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.18)