delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/11/17:46:45

From: "Richard Hasty" <rhasty AT io DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help: read/write from printer port
Date: 11 Jan 1998 22:34:27 GMT
Organization: Illuminati Online
Lines: 12
Message-ID: <01bd1e81$cbad7940$3851e0ce@rhasty>
References: <01bd1cc1$d4914d00$ab51e0ce AT rhasty> <WKLBkDAeFft0EwSB AT lfheller DOT demon DOT co DOT uk>
NNTP-Posting-Host: as2-dialup-10.wc-aus.io.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thank you for your help.  Do you know where I might find a list of other
ports and adresses?  

Leon Heller <leon AT lfheller DOT demon DOT co DOT uk> wrote in article
<WKLBkDAeFft0EwSB AT lfheller DOT demon DOT co DOT uk>...
> 
> The printer port registers are I/O-mapped, not memory-mapped. The
> easiest way to access them is to use the outportb(port, value) and
> inportb(port) functions.
> 
> 
 call aswell i
changed:

set_palette(datafile[pal].dat); to set_palette(data[pal].dat);

However i got this error:

array subscript is not an integer

What does this mean and what have i done wrong or missed? Please can
someone show me an example of setting the pallete using compiled datafiles,
thanks in advance, Regards...

-- 
Rossa :)
at
Rossa AT BTinternet DOT com

"People who remember quotes, just have better memories
 not a higher Intelligence" - Leonardo Da Vince.

- Raw text -


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