图书介绍
IBM PC汇编语言与程序设计 第4版PDF|Epub|txt|kindle电子书版本网盘下载
![IBM PC汇编语言与程序设计 第4版](https://www.shukui.net/cover/42/31186322.jpg)
- (美)(P.埃布尔)Peter Abel著 著
- 出版社: 北京:清华大学出版社
- ISBN:7302028303
- 出版时间:1998
- 标注页数:606页
- 文件大小:15MB
- 文件页数:629页
- 主题词:暂缺
PDF下载
下载说明
IBM PC汇编语言与程序设计 第4版PDF格式电子书版下载
下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!
(文件页数 要大于 标注页数,上中下等多册电子书除外)
注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具
图书目录
Part A Fundamentals of PC Hardware and Software1
1 BASIC FEATURES OF PC HARDWARE1
Introduction1
Bits and Bytes1
Binary Numbers3
Hexadecimal Representation6
ASCII Code7
The Processor7
Internal Memory9
Segments and Addressing11
Registers13
Key Points17
Questions18
2 REQUIREMENTS FOR USING PC SOFTWARE20
Introduction20
Features of the Operating System20
The Boot Process21
Input-Output Interface22
The System Program Loader22
The Stack23
Addressing of Instructions and Data25
Instruction Operands27
Key Points27
Questions28
3 EXECUTING COMPUTER INSTRUCTIONS29
Introduction29
Using the DEBUG Program30
Viewing Memory Locations31
Machine Language Example Ⅰ:Immediate Data34
Machine Language Example Ⅱ:Defined Data38
An Assembly Language Example41
Using the INT Instruction42
Saving a Program from Within DEBUG45
Using the PTR Operator45
Key Points46
Questions47
Part B Fundamentals of Assembly Language49
4 REQUIREMENTS FOR CODING IN ASSEMBLY LANGUAGE49
Introduction49
Assemblers and Compilers50
Program Comments50
Reserved Words51
Identifiers51
Statements52
Directives53
Instructions for Initializing a Program57
Instructions for Ending Program Execution59
Example of a Source Program59
Initializing for Protected Mode60
Simplified Segment Directives61
Data Definition62
Directives for Defining Data65
The EQu Directive69
Key Points70
Questions71
5 ASSEMBLING,LINKING,AND EXECUTING A PROGRAM73
Introduction73
Preparing a Program for Execution73
Assembling a Source Program74
Using Conventional Segment Definitions76
Using Simplified Segment Directives81
Two-Pass Assembler83
Linking an Object Program83
Executing a Program86
Cross-Reference Listing86
Error Diagnostics87
The Assembler Location Counter89
Key Points89
Questions89
6 SYMBOLIC INSTRUCTIONS AND ADDRESSING91
Introduction91
The Symbolic Instruction Set91
Instruction Operands94
The Mov Instruction97
Move-and-Fill Instructions98
Immediate Operands99
The XCHG Instruction100
The LEA Instruction101
The INC and DEC Instructions101
Extended Move Operations101
The INT Instruction103
Aligning Data Addresses104
Near and Far Addresses104
The Segment Override Prefix105
Key Points105
Questions106
7 WRITING.COM PROGRAMS108
Introduction108
Differences Between an.EXE and a.COM Program108
Converting into.CoM Format109
Example of a.CoM Program110
The.COM Stack111
Debugging Tips112
Key Points112
Questions113
8 PROGRAMMING REQUIREMENTS FOR LOGIC AND CONTROL114
Introduction114
Short,Near,and Far Addresses115
Instruction Labels115
The JMP Instruction116
The LOOP Instruction118
The Flags Register119
The CMP Instruction120
Conditional Jump Instructions121
Calling Procedures123
Effect of Program Execution on the Stack126
Boolean Operations127
Program:Changing Uppercase to Lowercase129
Shifting Bits130
Rotating Bits132
Jump Tables134
Organizing a Program136
Key Points137
Questions137
Part C Screen and Keyboard Operations139
9 INTRODUCTION TO SCREEN AND KEYBOARD PROCESSING139
Introduction139
The Screen140
Setting the Cursor140
Clearing the Screen141
INT 21H Function O9H for Screen Display142
TNT 21H Function OAH for Keyboard Input144
Program:Accepting and Displaying Names145
Using Control Characters in a Screen Display149
INT 21H Function O2H for Screen Display150
File Handles150
INT 2IH Function 4OH for Screen Display151
INT 2IH Function 3FH for Keyboard Input152
Key Points154
Questions154
10 ADVANCED FEATURES OF SCREEN PROCESSING156
Introduction156
Video Adapters157
Setting the Video Mode157
Using Text Mode158
Screen Pages161
Using INT IOH for Text Mode161
Program:Displaying the ASCII Character Set167
ASCII Characters for Boxes and Menus170
Program:Blinking,Reverse Video,and Scrolling171
Direct Video Display173
Using Graphics Mode175
INT IoH for Graphics177
Program:Setting and Displaying Graphics Mode180
Determining the Type of Video Adapter182
Key Points182
Questions183
11 ADVANCED FEATURES OF KEYBOARD PROCESSING185
Introduction185
The Keyboard186
Keyboard Shift Status186
The Keyboard Buffer187
Using INT 21H for Keyboard Input188
Using INT 16H for Keyboard Input189
Extended Function Keys and Scan Codes191
Program:Selecting from a Menu193
BIOS INT O9H and the Keyboard Buffer197
Keying in the Full ASCII Character Set201
Key Points201
Questions202
Part D Data Manipulation203
12 PROCESSING STRING DATA203
Introduction203
Features of String Operations204
REP:Repeat String Prefix204
MOVS:Move String Instruction205
LODS:Load String Instruction207
STOS:Store String Instruction208
Program:Using LoDs and STOS to Transfer Data209
CMPS:Compare String Instruction211
SCAS:Scan String Instruction213
Example:Using Scan and Replace214
Alternative Coding for String Instructions214
Duplicating a Pattern215
Program:Right Adjusting a Screen Display215
Key Points218
Questions218
13 ARITHMETIC:I—PROCESSING BINARY DATA220
Introduction220
Processing Unsigned and Signed Data221
Addition and Subtraction222
Extending Values in a Register224
Performing Arithmetic on Doubleword Values225
Multiplication227
Performing Doubleword Multiplication231
Special Multiplication Instructions234
Multiplication by Shifting235
Division235
Division by Shifting239
Reversing the Sign240
The Numeric Data Processor240
Key Points242
Questions243
14 ARITHMETIC:Ⅱ—PROCESSING ASCII AND BCD DATA244
Introduction244
Data in Decimal Format245
Processing ASCII Data246
Processing Unpacked BCD Data249
Processing Packed BCD Data251
Converting ASCII Data to Binary Format253
Converting Binary Data to ASCII Format255
Shifting and Rounding a Product257
Program:Converting AsCu Data257
Key Points263
Questions264
15 DEFINING AND PROCESSING TABLES265
Introduction265
Defining Tables265
Direct Addressing of Table Entries267
Searching a Table271
The XLAT (Translate) Instruction277
Program:Displaying Hex and ASCII Characters278
Sorting Table Entries280
Linked Lists281
The TYPE,LENGTH,and SIZE Operators286
Key Points286
Questions287
Part E Advanced Input/Output289
16 DISK STORAGE Ⅰ ORGANIZATION289
Introduction289
Disk Characteristics289
The Disk System Area and Data Area292
The Boot Record294
The Directory294
The File Allocation Table296
Exercise:Examining the FAT299
Processing Files on Disk302
Key Points302
Questions302
17 DISK STORAGE Ⅱ WRITING AND READING FILES304
Introduction304
ASCIIZ Strings305
File Handles305
Error Return Codes305
File Pointers306
Using File Handles to Create Disk Files306
Using File Handles to Read Disk Files311
Using File Handles for Random Processing313
Program:Processing an AScu File320
Absolute Disk I/O324
Disk Services Using File Control Blocks325
Key Points330
Questions330
18 DISK STORAGE Ⅲ.INT 21H FUNCTIONS FOR SUPPORTING DISKS AND FILES332
Introduction332
Operations Handling Disk Drives333
Program:Reading Data from Sectors342
Operations Handling the Directory and the FAT345
Program:Displaying the Directory346
Operations Handling Disk Files348
Program:Selectively Deleting Files353
Key Points356
Questions356
19 DISK STORAGE Ⅳ: INT 13H DISK FUNCTIONS357
Introduction357
BIOS Status Byte358
Basic INT I3H Disk Operations358
Program:Using INT I3H to Read Sectors360
Other INT I3H Disk Operations363
Key Points368
Questions368
20 FACILITIES FOR PRINTING369
Introduction369
Common Printer Control Characters370
INT 2IH Function 40H:Print Characters370
Program:Printing With Page Overflow and Headings371
Program:Printing ASCII Files and Handling Tabs374
INT 2IH Function O5H:Print Character378
Special Printer Control Characters379
INT I7H Functions for Printing380
Key Points381
Questions381
21 OTHER INPUT/OUTPUT FACILITIES383
Introduction383
Mouse Features383
Mouse Functions384
Common INT 33H Operations385
Program:Using the Mouse391
Ports394
String Input/Output395
Generating Sound397
Key Points397
Questions398
Part F Advanced Programming400
22 DEFINING AND USING MACROS400
Introduction400
Two Simple Macro Definitions401
Using Parameters in Macros402
Macro Comments403
Using a Macro Within a Macro Definition405
The LOCAL Directive407
Including Macros from a Library407
Concatenation410
Repetition Directives410
Conditional Directives412
Key Points416
Questions417
23 LINKING TO SUBPROGRAMS419
Introduction419
The SEGMENT Directive420
Intrasegment Calls421
Intersegment Calls422
The EXTRN and PUBLIC Attributes423
Using EXTRN and PUBLIC for an Entry Point425
Defining the Code Segment as PUBLIC427
Using Simplified Segment Directives429
Defining Common Data as PUBLIC430
Defining Data in Both Programs431
Passing Parameters to a Subprogram433
Linking Pascal with an Assembly Language Program436
Linking C with an Assembly Language Program440
Key Points442
Questions444
24 MEMORY MANAGEMENT445
Introduction445
The Main DOS Programs445
The High-Memory Area446
The Program Segment Prefix447
Memory Blocks452
Memory Allocation Strategy455
The Program Loader456
Allocating and Freeing Memory462
Loading or Executing a Program Function463
Program Overlays464
Resident Programs470
Key Points475
Questions476
Part G Reference Chapters478
25 BIOS DATA AREAS AND PROGRAM INTERRUPTS478
Introduction478
The Boot Process478
The BIOS Data Area479
Interrupt Services482
BIOS Interrupts483
BIOS:DOS Interface487
DOS Interrupts487
INT 2IH Services488
Key Points494
Questions495
26 OPERATORS AND DIRECTIVES497
Introduction497
Type Specifiers497
Operators498
Directives504
27 THE PC INSTRUCTION SET525
Introduction525
Register Notation526
The Addressing Mode Byte526
Two-Byte Instructions527
Three-Byte Instructions528
Four-Byte Instructions528
Instruction Set529
APPENDIXES557
A Conversion Between Hexadecimal and Decimal Numbers557
B ASCII Character Codes560
C Reserved Words562
D Assembler and Link Options564
E The DEBUG Program572
F Keyboard Scan Codes and ASCII Codes579
ANSWERS TO SELECTED QUESTIONS583
INDEX595