Article View: comp.os.msdos.programmer
Article #1349Re: Color pixel in VGA mode
From: AMBAT SASI S/O PALISSERY P
Date: Tue, 08 Sep 1992 01:25
Date: Tue, 08 Sep 1992 01:25
33 lines
1426 bytes
1426 bytes
mpni@jyu.fi (Nieminen Mika Petteri) writes: : : Hi! : : I have a problem with programming in VGA 640X480 16 colors mode. : I don't know exactly how to change 'color palette' to produce multicolor : picture. In 320X200 256 color mode it's not a problem (no need to worry : about different palette/bitplane). : : Could someome kindly post a simply answer with/without example program (C/Asm) : how to draw color pixels in 640X480 mode. : : Thanks : Mika Nieminen : programming in this mode has a lot to do with port[$3CE] in pseudo assembly (in pre OUT DX,AX form) ..... after u init the mode, al <- 1 index to enable set/reset of color bit plane ah <- f select all planes when setting pixel, al <- 8 bitmask for the byte u r writing to ah <- x eg. x=01010101 at [$a000:0] will write to (1,0) , (3,0) , (5,0) & (7,0) al <- 0 set/reset color bit plane ah <- color but works just as well. sasi.
Technical Details
Message-ID:
<1992Sep8.012552.7745@nuscc.nus.sg>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!nuscc!nusunix3.nus.sg!isc30108References:
<1992Sep7.110014.21681@jyu.fi>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!nuscc!nusunix3.nus.sg!isc30108 From: isc30108@nusunix3.nus.sg (AMBAT SASI S/O PALISSERY P) Subject: Re: Color pixel in VGA mode Message-ID: <1992Sep8.012552.7745@nuscc.nus.sg> Sender: usenet@nuscc.nus.sg Organization: National University of Singapore References: <1992Sep7.110014.21681@jyu.fi> Date: Tue, 8 Sep 1992 01:25:52 GMT Lines: 33