flat assembler
Message board for the users of flat assembler.
Index
> DOS > change the color of the pixel |
Author |
|
bogdanontanu 27 Feb 2005, 06:52
In 256 colors modes you also need to setup a pallette.
So assuming that you have a linear black to white shades of gray with color 00 beeing black and color 0FFh beeing white: Code: mov byte ptr es:[di],0ffh ; make the pixel white |
|||
27 Feb 2005, 06:52 |
|
Japheth 27 Feb 2005, 09:18
to get the logical scan line length you can use VESA function 4F06h (see RBIL for details) or get it directly from CRT register 3D4, 13h (this value must then be multiplied by 8 for 256 color modes)
|
|||
27 Feb 2005, 09:18 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.