flat assembler
Message board for the users of flat assembler.

Index > DOS > Changing palette in VESA

Author
Thread Post new topic Reply to topic
Dryobates



Joined: 13 Jul 2003
Posts: 46
Location: Poland
Dryobates
I need to use 256 colour VESA mode (e.g. 105h) Everething would be ok, but I can't change palette Sad
I was trying functions 1012h and 4f09h (int 10h) which returns 00h code, so everething should be ok... but it isn't Sad Palette stays the same. Do I use wrong function?
I don't attach source, because I have to write it in TASM Sad Program is runing in WinXP, but target system is DOS.
Thanks for all sugestions.
Post 21 Dec 2003, 15:46
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7756
Location: Kraków, Poland
Tomasz Grysztar
Perhaps the simplest solution (at least in my opinion) is to directly write your palette into VGA registers, I was using this method in the kelvar project (it's one of the DOS examples on the fasm's website), look into SYSTEM\VIDEO.INC file for "set_palette" routine.
Post 21 Dec 2003, 17:35
View user's profile Send private message Visit poster's website Reply with quote
Dryobates



Joined: 13 Jul 2003
Posts: 46
Location: Poland
Dryobates
Thx. That was what I need Smile
But I have one more question. Could you say where I can find something more about controling VESA video cards by ports?
Post 21 Dec 2003, 20:14
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.