flat assembler
Message board for the users of flat assembler.

Index > OS Construction > what bit type colors are these?

Author
Thread Post new topic Reply to topic
Redragon



Joined: 27 Nov 2004
Posts: 101
Location: U.S.
Redragon 25 Sep 2005, 01:37
Code:
mov dx, 0xc004
mov al, 0x20
out dx, al

mov dx, 0xc008
mov al, 8
out dx, al
    


i was wondering what bit type these are and what color they are, ex. red, green.., i think their 16 but im not sure... and does anyone know where i can find a list of them? thanks!
Post 25 Sep 2005, 01:37
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 25 Sep 2005, 01:58
i think they are 16 of them, and upper byte means background colour, and lower byte means forecolour (textcolour), but i am not sure
they are probably chosen from a palette of 16 colours
Post 25 Sep 2005, 01:58
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Red Shaya



Joined: 14 Apr 2005
Posts: 5
Red Shaya 14 Nov 2005, 18:38
Try the following link
http://en.wikipedia.org/wiki/Color_Graphics_Adapter

0x20 means black text on green background
0x08 means gray text on black background
Post 14 Nov 2005, 18:38
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Nov 2005, 19:01
btw, does someody know something about 64bit ega palette? i saw someting in references, but i never saw it used
Post 14 Nov 2005, 19:01
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
tom tobias



Joined: 09 Sep 2003
Posts: 1320
Location: usa
tom tobias 14 Nov 2005, 22:05
No, Vid, sorry, I don't know anything about 64 BIT ega color, but I do know something about 64 COLOR EGA. Here's a reference from Charles Petzold, describing the first version of windows, version 1.0:
http://www.charlespetzold.com/etc/Windows1/
Post 14 Nov 2005, 22:05
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.