🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: rec.games.programmer
2 messages
2 total messages Started by Jeon Bahbac Rezvani Mon, 13 Apr 1992 19:21
pallette in modex...
#342
Author: Jeon Bahbac Rezvani
Date: Mon, 13 Apr 1992 19:21
13 lines
1082 bytes
Does anyone know how to change the palette in ModeX?

I have tried int 10h, but that didn't work for me..  I also tried direct,
but that didn't work for me...  Basically I want:

SetPalette(0-255, 0-63, 0-63, 0-63)

where 0-255 is the color register, and the 0-63 are red, green, blue
(respectively)...  I did something like..  Set up 03c8 for palette..  Then
use 03c9 (data reg) for the colors..  What I kept getting was that only the
green palette would change (at least it changed the right palette register)..
But, red or blue did squat...  Do I have to change some other registers in
order to do this or what? Anyone know?  Thanks..
Re: pallette in modex...
#361
Author: Christopher Hecker
Date: Thu, 16 Apr 1992 05:18
10 lines
945 bytes
Accessing the palette in mode X is no different from doing it in any of
the standard modes.  The BIOS tends to do wierd things, so don't use it
while you are in mode X.  If you only need to set the palette once, why
not set it while you are in mode 13h with the BIOS, and then call the
routine that sets mode X?  Remember, though, you don't want the
set-mode-X routine to set mode 13h again...you'll only want to modify
the CRTC regs, and reset the clock.

Chris
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads