J> ok, so how would i start and run it?
J> (320x200) in 256?
in Turbo C++ or equivalent 16-bit compiler, do this:
typedef volatile unsigned char pixel;
create a global variable like this:
pixel *screen = (pixel *) 0xA0000000;
then set the mode using
asm {
mov ax,0x13
int 0x10
}
and write color c to cell (x,y) using:
screen[y*320+x]=c;
and then you can optimize some stuff manually... like not multiplying
by 320 all the time... among other things.
putting it back in text:
asm {
mov ax,0x13
int 0x10
}
doing palette stuff is the next step once you mastered this one; and
playing with the other tricks in your video card is the third step.
(setting up write modes, read modes, masks, 400 lines, copper effects,
hardware scrolling, screen splitting, and such.)
matju
--- Terminate 4.00/Pro
---------------
* Origin: The Lost Remains Of SatelliteSoft BBS (1:163/215.42)
|