flat assembler
Message board for the users of flat assembler.
![]() |
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 |
|||
![]() |
|
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)
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.