Tidy HTML

This commit is contained in:
James Gregory 2013-12-30 14:56:41 +11:00
commit 3760ddbdd3
362 changed files with 72376 additions and 62837 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,44 +1,44 @@
<HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<HEAD> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<META name=vsisbn content="1576101746">
<META name=vstitle content="Michael Abrash's Graphics Programming Black Book, Special Edition">
<META name=vsauthor content="Michael Abrash">
<META name=vspublisher content="The Coriolis Group">
<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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="vsisbn" content="1576101746" />
<meta name="vstitle" content="Michael Abrash's Graphics Programming Black Book, Special Edition" />
<meta name="vsauthor" content="Michael Abrash" />
<meta name="vspublisher" content="The Coriolis Group" />
<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: Assume Nothing</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.//-->
<!--CHAPTER=03//-->
<!--PAGES=035-042//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
<center>
<table border="1">
<tr>
<td><a href="03-01.html">Previous</a></td>
<td><a href="index.html">Table of Contents</a></td>
<td><a href="03-03.html">Next</a></td>
</tr>
</table>
</center>
<TITLE>Michael Abrash's Graphics Programming Black Book Special Edition: Assume Nothing</TITLE> <p><br /></p>
<!-- HEADER --> <p><b>LISTING 3.1 PZTIMER.ASM</b></p><!-- CODE //-->
<!-- Empty Reference Subhead --> <pre>
<!--ISBN=1576101746//-->
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
<!--AUTHOR=Michael Abrash//-->
<!--PUBLISHER=The Coriolis Group, Inc.//-->
<!--CHAPTER=03//-->
<!--PAGES=035-042//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//--></HEAD><body>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="03-01.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="03-03.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><B>LISTING 3.1 PZTIMER.ASM</B></P>
<!-- CODE //-->
<PRE>
; The precision Zen timer (PZTIMER.ASM) ; The precision Zen timer (PZTIMER.ASM)
; ;
; Uses the 8253 timer to time the performance of code that takes ; Uses the 8253 timer to time the performance of code that takes
@ -478,31 +478,29 @@ ZTimerReport endp
Code ends Code ends
end end
</PRE> </pre><!-- END CODE //-->
<!-- END CODE //-->
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="03-01.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="03-03.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<hr width="90%" size="1" noshade> <p><br /></p>
<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 --> <center>
</BODY> <table border="1">
</HTML> <tr>
<td><a href="03-01.html">Previous</a></td>
<!-- END FOOTER --> <td><a href="index.html">Table of Contents</a></td>
<td><a href="03-03.html">Next</a></td>
</tr>
</table>
</center>
<hr width="90%" size="1" noshade="noshade" />
<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 -->
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,44 +1,44 @@
<HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<HEAD> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<META name=vsisbn content="1576101746">
<META name=vstitle content="Michael Abrash's Graphics Programming Black Book, Special Edition">
<META name=vsauthor content="Michael Abrash">
<META name=vspublisher content="The Coriolis Group">
<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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="vsisbn" content="1576101746" />
<meta name="vstitle" content="Michael Abrash's Graphics Programming Black Book, Special Edition" />
<meta name="vsauthor" content="Michael Abrash" />
<meta name="vspublisher" content="The Coriolis Group" />
<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: Crossing the Border</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.//-->
<!--CHAPTER=05//-->
<!--PAGES=118-121//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
<center>
<table border="1">
<tr>
<td><a href="05-02.html">Previous</a></td>
<td><a href="index.html">Table of Contents</a></td>
<td><a href="05-04.html">Next</a></td>
</tr>
</table>
</center>
<TITLE>Michael Abrash's Graphics Programming Black Book Special Edition: Crossing the Border</TITLE> <p><br /></p>
<!-- HEADER --> <p><b>LISTING 5.1 SEARCH.C</b></p><!-- CODE //-->
<!-- Empty Reference Subhead --> <pre>
<!--ISBN=1576101746//-->
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
<!--AUTHOR=Michael Abrash//-->
<!--PUBLISHER=The Coriolis Group, Inc.//-->
<!--CHAPTER=05//-->
<!--PAGES=118-121//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//--></HEAD><body>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="05-02.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="05-04.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><B>LISTING 5.1 SEARCH.C</B></P>
<!-- CODE //-->
<PRE>
/* Program to search the file specified by the first command-line /* Program to search the file specified by the first command-line
* argument for the string specified by the second command-line * argument for the string specified by the second command-line
* argument. Performs the search by reading and searching blocks * argument. Performs the search by reading and searching blocks
@ -204,31 +204,29 @@ main(int argc, char *argv[]) {
exit(Found); /* Return the found/not found status as the exit(Found); /* Return the found/not found status as the
DOS errorlevel */ DOS errorlevel */
} }
</PRE> </pre><!-- END CODE //-->
<!-- END CODE //-->
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="05-02.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="05-04.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<hr width="90%" size="1" noshade> <p><br /></p>
<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 --> <center>
</BODY> <table border="1">
</HTML> <tr>
<td><a href="05-02.html">Previous</a></td>
<!-- END FOOTER --> <td><a href="index.html">Table of Contents</a></td>
<td><a href="05-04.html">Next</a></td>
</tr>
</table>
</center>
<hr width="90%" size="1" noshade="noshade" />
<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 -->
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,44 +1,44 @@
<HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<HEAD> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<META name=vsisbn content="1576101746">
<META name=vstitle content="Michael Abrash's Graphics Programming Black Book, Special Edition">
<META name=vsauthor content="Michael Abrash">
<META name=vspublisher content="The Coriolis Group">
<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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="vsisbn" content="1576101746" />
<meta name="vstitle" content="Michael Abrash's Graphics Programming Black Book, Special Edition" />
<meta name="vsauthor" content="Michael Abrash" />
<meta name="vspublisher" content="The Coriolis Group" />
<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: Hints My Readers Gave Me</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.//-->
<!--CHAPTER=09//-->
<!--PAGES=178-180//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
<center>
<table border="1">
<tr>
<td><a href="09-03.html">Previous</a></td>
<td><a href="index.html">Table of Contents</a></td>
<td><a href="09-05.html">Next</a></td>
</tr>
</table>
</center>
<TITLE>Michael Abrash's Graphics Programming Black Book Special Edition: Hints My Readers Gave Me</TITLE> <p><br /></p>
<!-- HEADER --> <p><b>LISTING 9.2 L9-2.ASM</b></p><!-- CODE //-->
<!-- Empty Reference Subhead --> <pre>
<!--ISBN=1576101746//-->
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
<!--AUTHOR=Michael Abrash//-->
<!--PUBLISHER=The Coriolis Group, Inc.//-->
<!--CHAPTER=09//-->
<!--PAGES=178-180//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//--></HEAD><body>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="09-03.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="09-05.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><B>LISTING 9.2 L9-2.ASM</B></P>
<!-- CODE //-->
<PRE>
; Searches a text buffer for a text string. Uses REPNZ SCASB to scan ; Searches a text buffer for a text string. Uses REPNZ SCASB to scan
; the buffer for locations that match a specified character of the ; the buffer for locations that match a specified character of the
; searched-for string, then uses REPZ CMPS to check fully only those ; searched-for string, then uses REPZ CMPS to check fully only those
@ -135,11 +135,10 @@ FindStringDone:
ret ret
_FindStringendp _FindStringendp
end end
</PRE> </pre><!-- END CODE //-->
<!-- END CODE //-->
<P><B>LISTING 9.3 L9-3.C</B></P> <p><b>LISTING 9.3 L9-3.C</b></p><!-- CODE //-->
<!-- CODE //--> <pre>
<PRE>
/* Program to exercise buffer-search routines in Listings 9.1 &amp; 9.2 */ /* Program to exercise buffer-search routines in Listings 9.1 &amp; 9.2 */
#include &lt;stdio.h&gt; #include &lt;stdio.h&gt;
#include &lt;string.h&gt; #include &lt;string.h&gt;
@ -172,31 +171,29 @@ void main() {
strncpy(TempBuffer, MatchPtr, DISPLAY_LENGTH)); strncpy(TempBuffer, MatchPtr, DISPLAY_LENGTH));
} }
} }
</PRE> </pre><!-- END CODE //-->
<!-- END CODE //-->
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="09-03.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="09-05.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<hr width="90%" size="1" noshade> <p><br /></p>
<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 --> <center>
</BODY> <table border="1">
</HTML> <tr>
<td><a href="09-03.html">Previous</a></td>
<!-- END FOOTER --> <td><a href="index.html">Table of Contents</a></td>
<td><a href="09-05.html">Next</a></td>
</tr>
</table>
</center>
<hr width="90%" size="1" noshade="noshade" />
<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 -->
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,44 +1,44 @@
<HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<HEAD> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<META name=vsisbn content="1576101746">
<META name=vstitle content="Michael Abrash's Graphics Programming Black Book, Special Edition">
<META name=vsauthor content="Michael Abrash">
<META name=vspublisher content="The Coriolis Group">
<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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="vsisbn" content="1576101746" />
<meta name="vstitle" content="Michael Abrash's Graphics Programming Black Book, Special Edition" />
<meta name="vsauthor" content="Michael Abrash" />
<meta name="vspublisher" content="The Coriolis Group" />
<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: Boyer-Moore String Searching</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.//-->
<!--CHAPTER=14//-->
<!--PAGES=271-274//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
<center>
<table border="1">
<tr>
<td><a href="14-04.html">Previous</a></td>
<td><a href="index.html">Table of Contents</a></td>
<td><a href="14-06.html">Next</a></td>
</tr>
</table>
</center>
<TITLE>Michael Abrash's Graphics Programming Black Book Special Edition: Boyer-Moore String Searching</TITLE> <p><br /></p>
<!-- HEADER --> <p><b>LISTING 14.3 L14-3.ASM</b></p><!-- CODE //-->
<!-- Empty Reference Subhead --> <pre>
<!--ISBN=1576101746//-->
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
<!--AUTHOR=Michael Abrash//-->
<!--PUBLISHER=The Coriolis Group, Inc.//-->
<!--CHAPTER=14//-->
<!--PAGES=271-274//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//--></HEAD><body>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="14-04.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="14-06.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><B>LISTING 14.3 L14-3.ASM</B></P>
<!-- CODE //-->
<PRE>
; Searches a buffer for a specified pattern. In case of a mismatch, ; Searches a buffer for a specified pattern. In case of a mismatch,
; uses the value of the mismatched byte to skip across as many ; uses the value of the mismatched byte to skip across as many
; potential match locations as possible (partial Boyer-Moore). ; potential match locations as possible (partial Boyer-Moore).
@ -199,31 +199,29 @@ Done:
ret ret
_FindString endp _FindString endp
end end
</PRE> </pre><!-- END CODE //-->
<!-- END CODE //-->
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="14-04.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="14-06.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<hr width="90%" size="1" noshade> <p><br /></p>
<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 --> <center>
</BODY> <table border="1">
</HTML> <tr>
<td><a href="14-04.html">Previous</a></td>
<!-- END FOOTER --> <td><a href="index.html">Table of Contents</a></td>
<td><a href="14-06.html">Next</a></td>
</tr>
</table>
</center>
<hr width="90%" size="1" noshade="noshade" />
<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 -->
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,104 +1,172 @@
<HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<HEAD> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<META name=vsisbn content="1576101746">
<META name=vstitle content="Michael Abrash's Graphics Programming Black Book, Special Edition">
<META name=vsauthor content="Michael Abrash">
<META name=vspublisher content="The Coriolis Group">
<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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="vsisbn" content="1576101746" />
<meta name="vstitle" content="Michael Abrash's Graphics Programming Black Book, Special Edition" />
<meta name="vsauthor" content="Michael Abrash" />
<meta name="vspublisher" content="The Coriolis Group" />
<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: There Ain't No Such Thing as the Fastest Code</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.//-->
<!--CHAPTER=16//-->
<!--PAGES=308-311//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
<center>
<table border="1">
<tr>
<td><a href="16-04.html">Previous</a></td>
<td><a href="index.html">Table of Contents</a></td>
<td><a href="16-06.html">Next</a></td>
</tr>
</table>
</center>
<TITLE>Michael Abrash's Graphics Programming Black Book Special Edition: There Ain't No Such Thing as the Fastest Code</TITLE> <p><br /></p>
<!-- HEADER --> <p>Table 16.2 has two times for each entry listed: the first value is the overall counting time, including time spent in the main program, disk I/O, and everything else; the second value is the time actually spent counting words, the time spent in <b>ScanBuffer</b> . The first value is the time perceived by the user, but the second value best reflects the quality of the optimization in each entry, since the rest of the overall execution time is fixed.</p>
<!-- Empty Reference Subhead -->
<!--ISBN=1576101746//--> <table width="85%">
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//--> <tr>
<!--AUTHOR=Michael Abrash//--> <td colspan="3">
<!--PUBLISHER=The Coriolis Group, Inc.//--> <hr />
<!--CHAPTER=16//--> </td>
<!--PAGES=308-311//--> </tr>
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//--></HEAD><body>
<CENTER> <tr>
<TABLE BORDER> <td valign="top" align="lfft"></td>
<TR>
<TD><A HREF="16-04.html">Previous</A></TD> <th align="center" colspan="2">Word-Counting Time</th>
<TD><A HREF="index.html">Table of Contents</A></TD> </tr>
<TD><A HREF="16-06.html">Next</A></TD>
</TR> <tr>
</TABLE> <th width="35%" align="left" valign="top">Name</th>
</CENTER>
<P><BR></P> <th width="25%" align="left" valign="top">Overall time</th>
<P>Table 16.2 has two times for each entry listed: the first value is the overall counting time, including time spent in the main program, disk I/O, and everything else; the second value is the time actually spent counting words, the time spent in <B>ScanBuffer</B> . The first value is the time perceived by the user, but the second value best reflects the quality of the optimization in each entry, since the rest of the overall execution time is fixed.</P>
<TABLE WIDTH="85%"><TR> <th width="25%" align="left" valign="top">(ScanBuffer only)</th>
<TD COLSPAN="3"><HR> </tr>
<TR>
<TD VALIGN="TOP" ALIGN="LFFT"> <tr>
<TH ALIGN="CENTER" COLSPAN="2">Word-Counting Time <td colspan="3">
<TR> <hr />
<TH WIDTH="35%" ALIGN="LEFT" VALIGN="TOP">Name </td>
<TH WIDTH="25%" ALIGN="LEFT" VALIGN="TOP">Overall time </tr>
<TH WIDTH="25%" ALIGN="LEFT" VALIGN="TOP">(ScanBuffer only)
<TR> <tr>
<TD COLSPAN="3"><HR> <td align="left" valign="top">David Stafford Listing 16.5</td>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">David Stafford Listing 16.5 <TD ALIGN="LEFT" VALIGN="TOP">0.61 seconds <td align="left" valign="top">0.61 seconds</td>
<TD ALIGN="LEFT" VALIGN="TOP">0.33 seconds
<TR> <td align="left" valign="top">0.33 seconds</td>
<TD ALIGN="LEFT" VALIGN="TOP">Dave Methvin </tr>
<TD ALIGN="LEFT" VALIGN="TOP">0.66
<TD ALIGN="LEFT" VALIGN="TOP">0.39 <tr>
<TR> <td align="left" valign="top">Dave Methvin</td>
<TD ALIGN="LEFT" VALIGN="TOP">Mick Brown
<TD ALIGN="LEFT" VALIGN="TOP">0.70 <td align="left" valign="top">0.66</td>
<TD ALIGN="LEFT" VALIGN="TOP">0.41
<TR> <td align="left" valign="top">0.39</td>
<TD ALIGN="LEFT" VALIGN="TOP">Wendell Neubert </tr>
<TD ALIGN="LEFT" VALIGN="TOP">0.92
<TD ALIGN="LEFT" VALIGN="TOP">0.65 <tr>
<TR> <td align="left" valign="top">Mick Brown</td>
<TD ALIGN="LEFT" VALIGN="TOP"><B>For Comparison:</B>
<TR> <td align="left" valign="top">0.70</td>
<TD ALIGN="LEFT" VALIGN="TOP">Michael Abrash
<TD ALIGN="LEFT" VALIGN="TOP">1.73 <td align="left" valign="top">0.41</td>
<TD ALIGN="LEFT" VALIGN="TOP">1.44 </tr>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">assembly code <tr>
<TD ALIGN="LEFT" VALIGN="TOP"> <td align="left" valign="top">Wendell Neubert</td>
<TD ALIGN="LEFT" VALIGN="TOP">
<TR> <td align="left" valign="top">0.92</td>
<TD ALIGN="LEFT" VALIGN="TOP">Listing 16.1
<TD ALIGN="LEFT" VALIGN="TOP"> <td align="left" valign="top">0.65</td>
<TD ALIGN="LEFT" VALIGN="TOP"> </tr>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">Michael Abrash <tr>
<TD ALIGN="LEFT" VALIGN="TOP">4.70 <td align="left" valign="top"><b>For Comparison:</b></td>
<TD ALIGN="LEFT" VALIGN="TOP">4.43 </tr>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">C code <tr>
<TD ALIGN="LEFT" VALIGN="TOP"> <td align="left" valign="top">Michael Abrash</td>
<TD ALIGN="LEFT" VALIGN="TOP">
<TR> <td align="left" valign="top">1.73</td>
<TD ALIGN="LEFT" VALIGN="TOP">Listing 16.4
<TD ALIGN="LEFT" VALIGN="TOP"> <td align="left" valign="top">1.44</td>
<TD ALIGN="LEFT" VALIGN="TOP"> </tr>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP" COLSPAN="3"><SMALL><B>Note:</B> All times measured on a 20 MHz cached 386 DX.</SMALL> <tr>
<TR> <td align="left" valign="top">assembly code</td>
<TH ALIGN="LEFT" VALIGN="TOP" COLSPAN="3">Table 16.2 The top four word-counting entries.
<TR> <td align="left" valign="top"></td>
<TD COLSPAN="3"><HR>
</TABLE> <td align="left" valign="top"></td>
<P><B>LISTING 16.5 QSCAN3.ASM</B></P> </tr>
<!-- CODE //-->
<PRE> <tr>
<td align="left" valign="top">Listing 16.1</td>
<td align="left" valign="top"></td>
<td align="left" valign="top"></td>
</tr>
<tr>
<td align="left" valign="top">Michael Abrash</td>
<td align="left" valign="top">4.70</td>
<td align="left" valign="top">4.43</td>
</tr>
<tr>
<td align="left" valign="top">C code</td>
<td align="left" valign="top"></td>
<td align="left" valign="top"></td>
</tr>
<tr>
<td align="left" valign="top">Listing 16.4</td>
<td align="left" valign="top"></td>
<td align="left" valign="top"></td>
</tr>
<tr>
<td align="left" valign="top" colspan="3"><small><b>Note:</b> All times measured on a 20 MHz cached 386 DX.</small></td>
</tr>
<tr>
<th align="left" valign="top" colspan="3">Table 16.2 The top four word-counting entries.</th>
</tr>
<tr>
<td colspan="3">
<hr />
</td>
</tr>
</table>
<p><b>LISTING 16.5 QSCAN3.ASM</b></p><!-- CODE //-->
<pre>
; QSCAN3.ASM ; QSCAN3.ASM
; David Stafford ; David Stafford
@ -277,31 +345,29 @@ jumping.
.fardata WordTable .fardata WordTable
include qscan3.inc ;built by MAKETAB include qscan3.inc ;built by MAKETAB
end end
</PRE> </pre><!-- END CODE //-->
<!-- END CODE //-->
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="16-04.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="16-06.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<hr width="90%" size="1" noshade> <p><br /></p>
<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 --> <center>
</BODY> <table border="1">
</HTML> <tr>
<td><a href="16-04.html">Previous</a></td>
<!-- END FOOTER --> <td><a href="index.html">Table of Contents</a></td>
<td><a href="16-06.html">Next</a></td>
</tr>
</table>
</center>
<hr width="90%" size="1" noshade="noshade" />
<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 -->
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,44 +1,44 @@
<HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<HEAD> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<META name=vsisbn content="1576101746">
<META name=vstitle content="Michael Abrash's Graphics Programming Black Book, Special Edition">
<META name=vsauthor content="Michael Abrash">
<META name=vspublisher content="The Coriolis Group">
<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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="vsisbn" content="1576101746" />
<meta name="vstitle" content="Michael Abrash's Graphics Programming Black Book, Special Edition" />
<meta name="vsauthor" content="Michael Abrash" />
<meta name="vspublisher" content="The Coriolis Group" />
<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: The Game of Life</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.//-->
<!--CHAPTER=17//-->
<!--PAGES=325-329//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
<center>
<table border="1">
<tr>
<td><a href="17-01.html">Previous</a></td>
<td><a href="index.html">Table of Contents</a></td>
<td><a href="17-03.html">Next</a></td>
</tr>
</table>
</center>
<TITLE>Michael Abrash's Graphics Programming Black Book Special Edition: The Game of Life</TITLE> <p><br /></p>
<!-- HEADER --> <p><b>LISTING 17.1 L17-1.CPP</b></p><!-- CODE //-->
<!-- Empty Reference Subhead --> <pre>
<!--ISBN=1576101746//-->
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
<!--AUTHOR=Michael Abrash//-->
<!--PUBLISHER=The Coriolis Group, Inc.//-->
<!--CHAPTER=17//-->
<!--PAGES=325-329//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//--></HEAD><body>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="17-01.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="17-03.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><B>LISTING 17.1 L17-1.CPP</B></P>
<!-- CODE //-->
<PRE>
/* C++ Game of Life implementation for any mode for which mode set /* C++ Game of Life implementation for any mode for which mode set
and draw pixel functions can be provided. and draw pixel functions can be provided.
Tested with Borland C++ in the small model. */ Tested with Borland C++ in the small model. */
@ -233,11 +233,10 @@ void cellmap::next_generation(cellmap&amp; next_map)
} }
} }
} }
</PRE> </pre><!-- END CODE //-->
<!-- END CODE //-->
<P><B>LISTING 17.2 L17-2.CPP</B></P> <p><b>LISTING 17.2 L17-2.CPP</b></p><!-- CODE //-->
<!-- CODE //--> <pre>
<PRE>
/* VGA mode 13h functions for Game of Life. /* VGA mode 13h functions for Game of Life.
Tested with Borland C++. */ Tested with Borland C++. */
#include &lt;stdio.h&gt; #include &lt;stdio.h&gt;
@ -294,31 +293,29 @@ void show_text(int x, int y, char *text)
gotoxy(TEXT_X_OFFSET + x, y); gotoxy(TEXT_X_OFFSET + x, y);
puts(text); puts(text);
} }
</PRE> </pre><!-- END CODE //-->
<!-- END CODE //-->
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="17-01.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="17-03.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<hr width="90%" size="1" noshade> <p><br /></p>
<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 --> <center>
</BODY> <table border="1">
</HTML> <tr>
<td><a href="17-01.html">Previous</a></td>
<!-- END FOOTER --> <td><a href="index.html">Table of Contents</a></td>
<td><a href="17-03.html">Next</a></td>
</tr>
</table>
</center>
<hr width="90%" size="1" noshade="noshade" />
<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 -->
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,44 +1,44 @@
<HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<HEAD> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<META name=vsisbn content="1576101746">
<META name=vstitle content="Michael Abrash's Graphics Programming Black Book, Special Edition">
<META name=vsauthor content="Michael Abrash">
<META name=vspublisher content="The Coriolis Group">
<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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="vsisbn" content="1576101746" />
<meta name="vstitle" content="Michael Abrash's Graphics Programming Black Book, Special Edition" />
<meta name="vsauthor" content="Michael Abrash" />
<meta name="vspublisher" content="The Coriolis Group" />
<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: The Game of Life</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.//-->
<!--CHAPTER=17//-->
<!--PAGES=340-345//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
<center>
<table border="1">
<tr>
<td><a href="17-06.html">Previous</a></td>
<td><a href="index.html">Table of Contents</a></td>
<td><a href="17-08.html">Next</a></td>
</tr>
</table>
</center>
<TITLE>Michael Abrash's Graphics Programming Black Book Special Edition: The Game of Life</TITLE> <p><br /></p>
<!-- HEADER --> <p><b>LISTING 17.5 L17-5.CPP</b></p><!-- CODE //-->
<!-- Empty Reference Subhead --> <pre>
<!--ISBN=1576101746//-->
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
<!--AUTHOR=Michael Abrash//-->
<!--PUBLISHER=The Coriolis Group, Inc.//-->
<!--CHAPTER=17//-->
<!--PAGES=340-345//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//--></HEAD><body>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="17-06.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="17-08.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><B>LISTING 17.5 L17-5.CPP</B></P>
<!-- CODE //-->
<PRE>
/* C++ Game of Life implementation for any mode for which mode set /* C++ Game of Life implementation for any mode for which mode set
and draw pixel functions can be provided. The cellmap stores the and draw pixel functions can be provided. The cellmap stores the
neighbor count for each cell as well as the state of each cell; neighbor count for each cell as well as the state of each cell;
@ -312,31 +312,29 @@ void cellmap::init()
} }
} while (&mdash;init_length); } while (&mdash;init_length);
} }
</PRE> </pre><!-- END CODE //-->
<!-- END CODE //-->
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="17-06.html">Previous</A></TD>
<TD><A HREF="index.html">Table of Contents</A></TD>
<TD><A HREF="17-08.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<hr width="90%" size="1" noshade> <p><br /></p>
<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 --> <center>
</BODY> <table border="1">
</HTML> <tr>
<td><a href="17-06.html">Previous</a></td>
<!-- END FOOTER --> <td><a href="index.html">Table of Contents</a></td>
<td><a href="17-08.html">Next</a></td>
</tr>
</table>
</center>
<hr width="90%" size="1" noshade="noshade" />
<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 -->
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show more