delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/12/12:17:18

From: "R.G. Morgan" <r DOT g DOT morgan AT ncl DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Memory Access Problem!
Date: 9 Oct 1997 10:21:02 GMT
Organization: University of Newcastle upon Tyne
Lines: 15
Sender: n6368757 AT ncl DOT ac DOT uk
Message-ID: <61ib6e$f6e@whitbeck.ncl.ac.uk>
References: <01bcd460$198189c0$LocalHost AT petricks DOT vobis DOT net>
NNTP-Posting-Host: lilswood.ncl.ac.uk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

#include <sys/movedata.h>

  dosmemget(unsigned linearAddress, int numBytes, void *buff);

should do the trick, where linear address = segment * 16 + offset.
Here (as segment = 0, it is 0x0CFC).

In article <01bcd460$198189c0$LocalHost AT petricks DOT vobis DOT net>,
	"Markus Schrader" <petricks AT metronet DOT de> writes:
> Hello,
> I would like to readout PCI Controller Information(TX), exactly the Vendor
> id.
> The Memory adress is 0x0CFCh and the Offset is 0x00h-0x01h.
> 
> Does anyone of you know a function to read out this adress?

- Raw text -


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