TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JABO
from: MATHIEU BOUCHARD
date: 1998-03-19 02:14:00
subject: C++ Prog

 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.