colors dont manipulate

Quote
In article <4hb7dq$...@news.sas.ab.ca> cmar...@freenet.edmonton.ab.ca () writes:
>Ok, I've been having a problem when I try to palette cyclying the color 8
>in textmode(3)....  It works for,0,1,2,3,4,5,6,7 and thats IT!  Humm...
>I know it's not my procedurethough...  Maybe its because BLINK is off (Or
>on, or whatever is default)  Ok,I'm running in circles here, could some
>one give me the code to turn BLINKON/OFF?  Maybethats why itdoesn't work...

Palette problem:

In text modes, the palette is EGA-compatible.  They don't map the same as
in VGA graphics modes.  Instead of using direct values, you need a lookup
array:

const
  VGAColormap : array[0..15] of byte =
    (0,1,2,3,4,5,6,7,56,57,58,59,60,61,62,63);

On one video card I've used, entry 6 maps to VGA palette 20, so you may want
to query the EGA palette and find out what values it's using.  Let me know
if you need code to do this.

And, no, it has nothing to do with blink/bright.  Still, here's some code to
deal with that:

type
  bitfunc = (_bright,_blink);

procedure setbitfunc (func : bitfunc); assembler;

asm
  mov   ax,1003h
  mov   bl,[func]
  int   10h
end;

That's all there is to it!

Quote
>(Sorry for thespaceing, spacebar iskindasticky)

Notaproblem.:-)

Quote
>Shawn Martin,
>Microedge Productions '96

--
Scott F. Earnest             |0100100001000001010010010100110000100000|
sc...@whiplash.res.cmu.edu   |0100010101010010010010010101001100100001|
Head Pope, Non-Extant Temple of Afrodite, Goddess of Funky 70's Hairdos -><-
      YOU'VE BEEN LIED TO:  Possession is only one tenth of the law.
                The other nine tenths is really STUPIDITY!