Strip comments and inline ids onto h*

This commit is contained in:
James Gregory 2013-12-30 15:11:04 +11:00
commit 0f5f617adb
362 changed files with 2519 additions and 6694 deletions

View file

@ -10,16 +10,9 @@
<meta name="vspubdate" content="07/01/97" />
<meta name="vscategory" content="Web and Software Development: Game Development,Web and Software Development: Graphics and Multimedia Development" />
<title>Michael Abrash's Graphics Programming Black Book Special Edition: Changing Colors without Writing Pixels</title><!-- HEADER -->
<!-- Empty Reference Subhead -->
<!--ISBN=1576101746//-->
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
<!--AUTHOR=Michael Abrash//-->
<!--PUBLISHER=The Coriolis Group, Inc.//-->
<title>Michael Abrash's Graphics Programming Black Book Special Edition: Changing Colors without Writing Pixels</title>
<meta name="chapter" content="34" />
<meta name="pages" content="643-648" />
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
@ -37,13 +30,13 @@
<p><br /></p>
<h3><a id="Heading7"></a>A Test Program for Color Cycling</h3>
<h3 id="Heading7">A Test Program for Color Cycling</h3>
<p>Anyway, the choice of how to load the DAC is yours. Given that I&rsquo;m not providing you with any hard-and-fast rules (mainly because there don&rsquo;t seem to be any), what you need is a tool so that you can experiment with various DAC-loading approaches for yourself, and that&rsquo;s exactly what you&rsquo;ll find in Listing 34.1.</p>
<p>Listing 34.1 draws a band of vertical lines, each one pixel wide, across the screen. The attribute of each vertical line is one greater than that of the preceding line, so there&rsquo;s a smooth gradient of attributes from left to right. Once everything is set up, the program starts cycling the colors stored in however many DAC locations are specified by the <b>CYCLE_SIZE</b> equate; as many as all 256 DAC locations can be cycled. (Actually, <b>CYCLE_SIZE</b>-1 locations are cycled, because location 0 is kept constant in order to keep the background and border colors from changing, but <b>CYCLE_SIZE</b> locations are <i>loaded</i>, and it&rsquo;s the number of locations we can load without problems that we&rsquo;re interested in.)</p>
<p><b>LISTING 34.1 L34-1.ASM</b></p><!-- CODE //-->
<p><b>LISTING 34.1 L34-1.ASM</b></p>
<pre>
; Fills a band across the screen with vertical bars in all 256
; attributes, then cycles a portion of the palette until a key is
@ -294,7 +287,7 @@ endif;USE_BIOS
int 21h
endstart
</pre><!-- END CODE //-->
</pre>
<p><br /></p>
@ -313,10 +306,6 @@ endif;USE_BIOS
<div align="center">
Graphics Programming Black Book &copy; 2001 Michael Abrash
</div><!-- all of the reference materials (books) have the footer and subfoot reveresed -->
<!-- reference_subfoot = footer -->
<!-- reference_footer = subfoot -->
<!-- BEGIN SUB FOOTER -->
<!-- END FOOTER -->
</div>
</body>
</html>