Strip comments and inline ids onto h*
This commit is contained in:
parent
1997a7846d
commit
0f5f617adb
362 changed files with 2519 additions and 6694 deletions
21
34-03.html
21
34-03.html
|
|
@ -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’m not providing you with any hard-and-fast rules (mainly because there don’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’s exactly what you’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’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’s the number of locations we can load without problems that we’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 © 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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue