I have currently set up Vesa using the code below . However, this particular mode has a supposed 64k color palette. The problem is, I cannot figure out how to code a specific color. For example.. plotting a pixel with 0xFFFFFF produces a white pixel, 0x000000 produces a black pixel, but 0x00FF00 which should be green, produces a dark yellow color. Am I incorrect in correlating the color scheme to a standard rgb color palette? How can I determine the correct color I want???
Code: |
mov ax, 4f01h
mov bx, 4114h ;800x600 - 64k - 16-bit (5:6:5)
mov di, Mode_Info
mov cx, bx
int 10h
mov ax, 4f02h
int 10h
|
|
_________________
It's the desire to learn that leads to success...
http://www.webicomp.com