www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/28/11:04:12

From: Martin Alt <martin DOT alt AT siemens DOT at>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: adress enabling (Win98)
Date: Mon, 28 Aug 2000 15:42:04 +0200
Organization: Siemens AG
Lines: 35
Message-ID: <39AA6C2C.CF273476@siemens.at>
References: <39AA2AD6 DOT A2FFD5B AT siemens DOT at> <enokqs8dk0jah52r8sc22ka2fu48lickep AT 4ax DOT com>
NNTP-Posting-Host: a3202793.sie.siemens.at
Mime-Version: 1.0
X-Trace: scesie13.sie.siemens.at 967470125 5857 195.1.189.109 (28 Aug 2000 13:42:05 GMT)
X-Complaints-To: news AT siemens DOT at
NNTP-Posting-Date: 28 Aug 2000 13:42:05 GMT
X-Mailer: Mozilla 4.08 [de] (WinNT; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

> I don't understand what you mean.  Are you using a DOS application to write to
> a specific address?  It should work just fine in a plain DOS session as well as
> a Windows '9x session.  Perhaps you could post the relevant portion of code,
> along with a better description of what you are doing and what the exact result
> is?

I didn't want to boring with long code, but it looks like:

-----------
#define ISAADDR 0xd800

static unsigned portRead = ISAADDR,portWData  = ISAADDR + 1,portWCtr  = ISAADDR +
2,portOE = ISAADDR + 3;

void bos021_wr(unsigned short reg,unsigned short data)
{
  outpw(portWData,data);                                /* write data to Data latch
*/
  outpw(portWCtr,(unsigned short)(0x01<<(reg-1)));      /* write reg to Controll
latch */
  outpw(portOE,(unsigned short)0x03);                   /* enable output */
}
------------
I didn't get an error, but there is also no outbut (chipselect,...).
With MS-DOS it works well, so it has something to do that I am not allowed to write
on this adress.
I reserved to range in BIOS and/or Win98 but it seems that only a device driver has
access!?!

Regards
Martin


- Raw text -


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