Tidy HTML
This commit is contained in:
parent
b8e7ce7165
commit
3760ddbdd3
362 changed files with 72376 additions and 62837 deletions
169
01-01.html
169
01-01.html
File diff suppressed because one or more lines are too long
183
01-02.html
183
01-02.html
File diff suppressed because one or more lines are too long
331
01-03.html
331
01-03.html
File diff suppressed because one or more lines are too long
178
01-04.html
178
01-04.html
File diff suppressed because one or more lines are too long
148
01-05.html
148
01-05.html
File diff suppressed because one or more lines are too long
152
01-06.html
152
01-06.html
File diff suppressed because one or more lines are too long
167
02-01.html
167
02-01.html
File diff suppressed because one or more lines are too long
161
02-02.html
161
02-02.html
File diff suppressed because one or more lines are too long
147
02-03.html
147
02-03.html
File diff suppressed because one or more lines are too long
155
03-01.html
155
03-01.html
File diff suppressed because one or more lines are too long
112
03-02.html
112
03-02.html
|
|
@ -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 © 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 © 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>
|
||||||
|
|
|
||||||
158
03-03.html
158
03-03.html
File diff suppressed because one or more lines are too long
159
03-04.html
159
03-04.html
File diff suppressed because one or more lines are too long
149
03-05.html
149
03-05.html
File diff suppressed because one or more lines are too long
158
03-06.html
158
03-06.html
File diff suppressed because one or more lines are too long
134
03-07.html
134
03-07.html
File diff suppressed because one or more lines are too long
136
03-08.html
136
03-08.html
File diff suppressed because one or more lines are too long
156
03-09.html
156
03-09.html
File diff suppressed because one or more lines are too long
194
03-10.html
194
03-10.html
File diff suppressed because one or more lines are too long
174
04-01.html
174
04-01.html
File diff suppressed because one or more lines are too long
199
04-02.html
199
04-02.html
File diff suppressed because one or more lines are too long
200
04-03.html
200
04-03.html
File diff suppressed because one or more lines are too long
171
04-04.html
171
04-04.html
File diff suppressed because one or more lines are too long
170
04-05.html
170
04-05.html
File diff suppressed because one or more lines are too long
154
04-06.html
154
04-06.html
File diff suppressed because one or more lines are too long
163
04-07.html
163
04-07.html
File diff suppressed because one or more lines are too long
166
04-08.html
166
04-08.html
File diff suppressed because one or more lines are too long
146
04-09.html
146
04-09.html
File diff suppressed because one or more lines are too long
168
04-10.html
168
04-10.html
File diff suppressed because one or more lines are too long
164
05-01.html
164
05-01.html
File diff suppressed because one or more lines are too long
171
05-02.html
171
05-02.html
File diff suppressed because one or more lines are too long
112
05-03.html
112
05-03.html
|
|
@ -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 © 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 © 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>
|
||||||
|
|
|
||||||
135
05-04.html
135
05-04.html
File diff suppressed because one or more lines are too long
152
05-05.html
152
05-05.html
File diff suppressed because one or more lines are too long
186
06-01.html
186
06-01.html
File diff suppressed because one or more lines are too long
268
06-02.html
268
06-02.html
File diff suppressed because one or more lines are too long
182
07-01.html
182
07-01.html
File diff suppressed because one or more lines are too long
166
07-02.html
166
07-02.html
File diff suppressed because one or more lines are too long
117
07-03.html
117
07-03.html
File diff suppressed because one or more lines are too long
125
07-04.html
125
07-04.html
File diff suppressed because one or more lines are too long
247
07-05.html
247
07-05.html
File diff suppressed because one or more lines are too long
171
08-01.html
171
08-01.html
File diff suppressed because one or more lines are too long
226
08-02.html
226
08-02.html
File diff suppressed because one or more lines are too long
134
08-03.html
134
08-03.html
File diff suppressed because one or more lines are too long
282
08-04.html
282
08-04.html
File diff suppressed because one or more lines are too long
140
08-05.html
140
08-05.html
File diff suppressed because one or more lines are too long
242
09-01.html
242
09-01.html
File diff suppressed because one or more lines are too long
215
09-02.html
215
09-02.html
File diff suppressed because one or more lines are too long
131
09-03.html
131
09-03.html
File diff suppressed because one or more lines are too long
121
09-04.html
121
09-04.html
|
|
@ -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 & 9.2 */
|
/* Program to exercise buffer-search routines in Listings 9.1 & 9.2 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
@ -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 © 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 © 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>
|
||||||
|
|
|
||||||
142
09-05.html
142
09-05.html
File diff suppressed because one or more lines are too long
146
09-06.html
146
09-06.html
File diff suppressed because one or more lines are too long
205
09-07.html
205
09-07.html
File diff suppressed because one or more lines are too long
159
10-01.html
159
10-01.html
File diff suppressed because one or more lines are too long
382
10-02.html
382
10-02.html
File diff suppressed because one or more lines are too long
169
10-03.html
169
10-03.html
File diff suppressed because one or more lines are too long
136
10-04.html
136
10-04.html
File diff suppressed because one or more lines are too long
177
11-01.html
177
11-01.html
File diff suppressed because one or more lines are too long
161
11-02.html
161
11-02.html
File diff suppressed because one or more lines are too long
206
11-03.html
206
11-03.html
File diff suppressed because one or more lines are too long
223
11-04.html
223
11-04.html
File diff suppressed because one or more lines are too long
165
11-05.html
165
11-05.html
File diff suppressed because one or more lines are too long
158
11-06.html
158
11-06.html
File diff suppressed because one or more lines are too long
141
11-07.html
141
11-07.html
File diff suppressed because one or more lines are too long
171
11-08.html
171
11-08.html
File diff suppressed because one or more lines are too long
194
12-01.html
194
12-01.html
File diff suppressed because one or more lines are too long
231
12-02.html
231
12-02.html
File diff suppressed because one or more lines are too long
217
12-03.html
217
12-03.html
File diff suppressed because one or more lines are too long
212
12-04.html
212
12-04.html
File diff suppressed because one or more lines are too long
172
13-01.html
172
13-01.html
File diff suppressed because one or more lines are too long
167
13-02.html
167
13-02.html
File diff suppressed because one or more lines are too long
175
13-03.html
175
13-03.html
File diff suppressed because one or more lines are too long
162
13-04.html
162
13-04.html
File diff suppressed because one or more lines are too long
166
14-01.html
166
14-01.html
File diff suppressed because one or more lines are too long
167
14-02.html
167
14-02.html
File diff suppressed because one or more lines are too long
344
14-03.html
344
14-03.html
File diff suppressed because one or more lines are too long
123
14-04.html
123
14-04.html
File diff suppressed because one or more lines are too long
112
14-05.html
112
14-05.html
|
|
@ -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 © 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 © 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>
|
||||||
|
|
|
||||||
132
14-06.html
132
14-06.html
File diff suppressed because one or more lines are too long
162
15-01.html
162
15-01.html
File diff suppressed because one or more lines are too long
188
15-02.html
188
15-02.html
File diff suppressed because one or more lines are too long
154
15-03.html
154
15-03.html
File diff suppressed because one or more lines are too long
148
15-04.html
148
15-04.html
File diff suppressed because one or more lines are too long
246
16-01.html
246
16-01.html
File diff suppressed because one or more lines are too long
130
16-02.html
130
16-02.html
File diff suppressed because one or more lines are too long
142
16-03.html
142
16-03.html
File diff suppressed because one or more lines are too long
170
16-04.html
170
16-04.html
File diff suppressed because one or more lines are too long
296
16-05.html
296
16-05.html
|
|
@ -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 © 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 © 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>
|
||||||
|
|
|
||||||
137
16-06.html
137
16-06.html
File diff suppressed because one or more lines are too long
133
16-07.html
133
16-07.html
File diff suppressed because one or more lines are too long
181
16-08.html
181
16-08.html
File diff suppressed because one or more lines are too long
142
17-01.html
142
17-01.html
File diff suppressed because one or more lines are too long
121
17-02.html
121
17-02.html
|
|
@ -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& 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 <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
@ -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 © 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 © 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>
|
||||||
|
|
|
||||||
318
17-03.html
318
17-03.html
File diff suppressed because one or more lines are too long
133
17-04.html
133
17-04.html
File diff suppressed because one or more lines are too long
145
17-05.html
145
17-05.html
File diff suppressed because one or more lines are too long
172
17-06.html
172
17-06.html
File diff suppressed because one or more lines are too long
112
17-07.html
112
17-07.html
|
|
@ -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 (—init_length);
|
} while (—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 © 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 © 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>
|
||||||
|
|
|
||||||
155
17-08.html
155
17-08.html
File diff suppressed because one or more lines are too long
146
18-01.html
146
18-01.html
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
Loading…
Reference in a new issue