Message-Id: <199902261550.KAA14681@delorie.com> From: "Laurynas Biveinis" To: djgpp AT delorie DOT com Date: Fri, 26 Feb 1999 16:53:00 +0100 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: graphics function In-reply-to: <01be613e$b9a7c880$72faf8c8@aguia> X-mailer: Pegasus Mail for Win32 (v3.01d) Reply-To: djgpp AT delorie DOT com From: "Luiz Fernando Estivalet" To: Subject: graphics function Date sent: Fri, 26 Feb 1999 01:16:04 -0300 Send reply to: djgpp AT delorie DOT com Your code runs for me without problems. (Using C++, of course) Maybe you should try using pointers instead of references like this: void plsGet_Pal(const unsigned char ucCol, unsigned char *ucR, unsigned char *ucG, unsigned char *ucB) { outportb(0x03C7,ucCol); *ucR = inportb(0x03C9); *ucG = inportb(0x03C9); *ucB = inportb(0x03C9); }