Can be done.

by Artelius (Login Mikrondel)


The SCREEN 0 colours (0-15) each map to one of 64 DAC attributes.

In VGA, the DAC actually has 256 attributes but only the first 64 are available to SCREEN 0; furthermore all the DAC attributes can be reprogrammed to any 18-bit colour.

The 'OUT &H3C9' technique maps the DAC attributes to colours. Your two options are:
(If you want to change one colour): Find out which DAC attribute a SCREEN 0 colour maps to *by default*, and change that using OUT &H3C9, or
(If you want easy control of all colours): Remap the SCREEN 0 colours to DAC attributes 0-15 using OUT &H3C0, and then use OUT &H3C9 on these 16 attributes to get the results you desire.

Posted on Jun 15, 2010, 6:30 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
But I'm a window, can you show me something in my size?Pete on Jun 15
 *FYI - custom window colors used to work under DOSBox, but with Windows 7, it's all over.TheBOB on Jun 15
 WellArtelius on Jun 16
  * How do you set the blinking mode back Artie?Clippy on Jun 18
   Like thisArtelius on Jun 18
    * thanxClippy on Jun 18

 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement