Mail Archives: djgpp/2000/08/28/11:04:12
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 -