| Preface |
|
vii | |
|
|
|
1 | (8) |
|
|
|
3 | (6) |
|
|
|
3 | (2) |
|
What Is Assembly Language? |
|
|
5 | (1) |
|
Advantages of High-Level Languages |
|
|
6 | (1) |
|
Why Program in Assembly Language? |
|
|
7 | (1) |
|
|
|
8 | (1) |
|
|
|
8 | (1) |
|
PART II Computer Organization |
|
|
9 | (70) |
|
|
|
11 | (34) |
|
|
|
11 | (2) |
|
|
|
13 | (2) |
|
|
|
15 | (2) |
|
Deriving Logical Expressions |
|
|
17 | (1) |
|
Simplifying Logical Expressions |
|
|
18 | (5) |
|
|
|
23 | (3) |
|
|
|
26 | (3) |
|
Programmable Logic Devices |
|
|
29 | (3) |
|
Arithmetic and Logic Units |
|
|
32 | (3) |
|
|
|
35 | (2) |
|
|
|
37 | (2) |
|
|
|
39 | (4) |
|
|
|
43 | (2) |
|
|
|
45 | (16) |
|
|
|
45 | (1) |
|
|
|
46 | (2) |
|
|
|
48 | (2) |
|
|
|
50 | (2) |
|
|
|
52 | (4) |
|
|
|
56 | (2) |
|
|
|
58 | (1) |
|
|
|
59 | (1) |
|
|
|
60 | (1) |
|
|
|
61 | (18) |
|
|
|
61 | (2) |
|
Processor Execution Cycle |
|
|
63 | (1) |
|
|
|
63 | (4) |
|
Protected Mode Memory Architecture |
|
|
67 | (5) |
|
Real Mode Memory Architecture |
|
|
72 | (2) |
|
|
|
74 | (1) |
|
Which Segment Register to Use |
|
|
75 | (1) |
|
|
|
76 | (2) |
|
|
|
78 | (1) |
|
|
|
79 | (72) |
|
|
|
81 | (34) |
|
|
|
81 | (1) |
|
Partitioning Your Hard Disk |
|
|
82 | (10) |
|
Installing Fedora Core Linux |
|
|
92 | (15) |
|
Installing and Removing Software Packages |
|
|
107 | (3) |
|
Mounting Windows File System |
|
|
110 | (2) |
|
|
|
112 | (2) |
|
|
|
114 | (1) |
|
|
|
115 | (36) |
|
|
|
115 | (2) |
|
|
|
117 | (6) |
|
|
|
123 | (3) |
|
Working with the GNOME Desktop |
|
|
126 | (6) |
|
|
|
132 | (2) |
|
|
|
134 | (1) |
|
Some General-Purpose Commands |
|
|
135 | (4) |
|
|
|
139 | (2) |
|
|
|
141 | (4) |
|
|
|
145 | (1) |
|
|
|
146 | (1) |
|
|
|
147 | (2) |
|
|
|
149 | (2) |
|
|
|
151 | (34) |
|
Installing and Using NASM |
|
|
153 | (14) |
|
|
|
153 | (1) |
|
|
|
154 | (1) |
|
Generating the Executable File |
|
|
154 | (1) |
|
Assembly Language Template |
|
|
155 | (1) |
|
|
|
156 | (3) |
|
|
|
159 | (1) |
|
|
|
160 | (6) |
|
|
|
166 | (1) |
|
|
|
166 | (1) |
|
Debugging Assembly Language Programs |
|
|
167 | (18) |
|
Strategies to Debug Assembly Language Programs |
|
|
167 | (2) |
|
|
|
169 | (1) |
|
|
|
170 | (9) |
|
|
|
179 | (5) |
|
|
|
184 | (1) |
|
|
|
185 | (176) |
|
A First Look at Assembly Language |
|
|
187 | (24) |
|
|
|
187 | (1) |
|
|
|
188 | (5) |
|
|
|
193 | (3) |
|
Overview of Assembly Language Instructions |
|
|
196 | (9) |
|
|
|
205 | (1) |
|
|
|
206 | (3) |
|
|
|
209 | (2) |
|
More on Assembly Language |
|
|
211 | (20) |
|
|
|
211 | (1) |
|
Data Exchange and Translate Instructions |
|
|
212 | (1) |
|
Shift and Rotate Instructions |
|
|
213 | (4) |
|
|
|
217 | (1) |
|
|
|
218 | (3) |
|
|
|
221 | (2) |
|
|
|
223 | (4) |
|
When to Use the XLAT Instruction |
|
|
227 | (2) |
|
|
|
229 | (2) |
|
|
|
231 | (24) |
|
|
|
231 | (2) |
|
|
|
233 | (1) |
|
Implementation of the Stack |
|
|
234 | (2) |
|
|
|
236 | (2) |
|
|
|
238 | (1) |
|
|
|
239 | (2) |
|
|
|
241 | (1) |
|
|
|
242 | (6) |
|
|
|
248 | (4) |
|
|
|
252 | (3) |
|
|
|
255 | (18) |
|
|
|
255 | (1) |
|
|
|
256 | (1) |
|
|
|
257 | (3) |
|
Multiple Source Program Modules |
|
|
260 | (1) |
|
|
|
261 | (7) |
|
Procedures with Variable Number of Parameters |
|
|
268 | (4) |
|
|
|
272 | (1) |
|
|
|
273 | (18) |
|
|
|
273 | (1) |
|
|
|
274 | (4) |
|
|
|
278 | (3) |
|
|
|
281 | (1) |
|
|
|
282 | (7) |
|
|
|
289 | (2) |
|
|
|
291 | (26) |
|
|
|
291 | (1) |
|
|
|
292 | (10) |
|
|
|
302 | (7) |
|
|
|
309 | (1) |
|
|
|
310 | (6) |
|
|
|
316 | (1) |
|
|
|
317 | (24) |
|
|
|
317 | (1) |
|
|
|
318 | (3) |
|
|
|
321 | (1) |
|
|
|
322 | (5) |
|
|
|
327 | (1) |
|
|
|
328 | (2) |
|
|
|
330 | (5) |
|
|
|
335 | (4) |
|
|
|
339 | (2) |
|
Logical and Bit Operations |
|
|
341 | (20) |
|
|
|
341 | (1) |
|
|
|
342 | (5) |
|
|
|
347 | (6) |
|
|
|
353 | (1) |
|
|
|
354 | (1) |
|
|
|
355 | (2) |
|
|
|
357 | (3) |
|
|
|
360 | (1) |
|
PART VI Advanced Assembly Language |
|
|
361 | (98) |
|
|
|
363 | (16) |
|
|
|
363 | (1) |
|
|
|
364 | (8) |
|
|
|
372 | (1) |
|
|
|
373 | (3) |
|
Testing String Procedures |
|
|
376 | (2) |
|
|
|
378 | (1) |
|
|
|
379 | (12) |
|
|
|
379 | (2) |
|
Processing in ASCII Representation |
|
|
381 | (3) |
|
|
|
384 | (1) |
|
Processing Packed BCD Numbers |
|
|
385 | (2) |
|
|
|
387 | (2) |
|
Decimal Versus Binary Arithmetic |
|
|
389 | (1) |
|
|
|
390 | (1) |
|
|
|
391 | (12) |
|
|
|
391 | (1) |
|
|
|
392 | (2) |
|
|
|
394 | (6) |
|
Recursion Versus Iteration |
|
|
400 | (1) |
|
|
|
401 | (2) |
|
Protected-Mode Interrupt Processing |
|
|
403 | (20) |
|
|
|
403 | (1) |
|
|
|
404 | (1) |
|
Interrupt Processing in the Protected Mode |
|
|
405 | (3) |
|
|
|
408 | (2) |
|
|
|
410 | (1) |
|
|
|
411 | (4) |
|
|
|
415 | (1) |
|
|
|
415 | (3) |
|
|
|
418 | (1) |
|
Direct Control of I/O Devices |
|
|
419 | (1) |
|
|
|
420 | (3) |
|
High-Level Language Interface |
|
|
423 | (20) |
|
|
|
423 | (1) |
|
Calling Assembly Procedures from C |
|
|
424 | (3) |
|
|
|
427 | (1) |
|
|
|
428 | (4) |
|
Calling C Functions from Assembly |
|
|
432 | (2) |
|
|
|
434 | (7) |
|
|
|
441 | (2) |
|
Floating-Point Operations |
|
|
443 | (16) |
|
|
|
443 | (1) |
|
Floating-Point Unit Organization |
|
|
444 | (3) |
|
Floating-Point Instructions |
|
|
447 | (6) |
|
|
|
453 | (2) |
|
|
|
455 | (3) |
|
|
|
458 | (1) |
|
|
|
459 | (2) |
|
|
|
461 | (12) |
|
Positional Number Systems |
|
|
461 | (2) |
|
|
|
463 | (1) |
|
|
|
463 | (1) |
|
Binary/Octal/Hexadecimal Conversion |
|
|
464 | (2) |
|
|
|
466 | (1) |
|
|
|
466 | (3) |
|
Floating-Point Representation |
|
|
469 | (2) |
|
|
|
471 | (2) |
|
B Character Representation |
|
|
473 | (4) |
|
|
|
473 | (1) |
|
|
|
474 | (3) |
|
|
|
477 | (8) |
|
|
|
485 | (32) |
|
|
|
485 | (2) |
|
|
|
487 | (30) |
|
|
|
517 | (10) |
| Index |
|
527 | |