Page 1 of 1
Help In ASM
Posted: Tue Jul 18, 2006 8:20 pm
by thoover
Im tring to find a way to get more than 256 colors in asm i want at least 16,777,216, 16 bit color, im using fasm to create binary files and am programing directly to the video memery.
Re:Help In ASM
Posted: Wed Jul 19, 2006 1:49 am
by blip
16,777,216 colors would be 24-bit color.
For VGA you can't display over 256 colors at a time, but with a trick you can give the illusion of 3840 using the
FAKEMODE method. Other than that your only options are to program a driver for every card (undesirable) or to use VESA.
VBE3 doc and
VBE2 doc (most cards support at least v2.0).
Re:Help In ASM
Posted: Thu Aug 17, 2006 3:23 am
by Pype.Clicker
i'd suggest you to get a look at the programs on
http://www.dex4u.com/ ... they're virtually all written in FASM, most of them do use VBE to do 24-bit or 32-bit color painting ...
Most of them are bootsectors, though ... manipulating the framebuffer of supervga screens require more memory than real mode offer, and changing video with the BIOS (including VBE) require real-mode operations, so the natural way to go is to setup "unreal" mode for those ...
Hope you won't find it confusing ... maybe we can suggest you clearer alternatives if you mention why you need so many colours in ASM, hmm ?