Article View: comp.sys.amiga.tech
Article #5330Re: SHAM
From: Michael Griffith
Date: Tue, 18 Sep 1990 20:10
Date: Tue, 18 Sep 1990 20:10
18 lines
1513 bytes
1513 bytes
I'm sure someone around here has stats, but just in case, I believe it contains the color register values for each line of the display, since it changes the 15 color register values each display line (I believe it leaves the background value alone to avoid a multi-colored border). So you should have some multiple of fifteen. If I remember correctly it would be 15 words per line, so for a non-interlaced picture 15*200 or 3000 words or 6000 bytes, and therefore 12000 bytes for an interlaced picture. I think the colors are stored as words like so: 0x0RGB. So for your program you would need to change your simulated palette (I assume you have it in an array or something) each line to the next 15 colors indicated in the 'SHAM' chunk before you calculate the values for the line itself. P.S.: Now even I'm confused. ;) | Michael Griffith | If I had an opinion it certainly | | griffith@eecs.ee.pdx.edu | wouldn't be the same one as | | ...!tektronix!psueea!eecs!griffith | Portland State University anyways. |
Technical Details
Message-ID:
<107@pdxgate.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!olivea!orc!inews!iwarp.intel.com!psueea!pdxgate!eecs!griffithReferences:
<Q`G%++&@masalla.fulcrum.bt.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!olivea!orc!inews!iwarp.intel.com!psueea!pdxgate!eecs!griffith From: griffith@eecs.cs.pdx.edu (Michael Griffith) Newsgroups: comp.sys.amiga.tech Subject: Re: SHAM Message-ID: <107@pdxgate.UUCP> Date: 18 Sep 90 20:10:42 GMT References: <Q`G%++&@masalla.fulcrum.bt.co.uk> Sender: news@pdxgate.UUCP Lines: 18