IBM PC彙編語言程序設計
IBM PC彙編語言程序設計
《IBM PC彙編語言程序設計》本書主要介紹用彙編語言進行程序設計,先從硬體和軟體著手,然後介紹編程所需的各種指令,並給出豐富的範例。全書分為七大部分:PC機硬體、軟體基礎,彙編語言基礎,屏幕與鍵盤操作,數據操作,高級輸入/輸出,特別主題,以及關於BI0S數據區、中斷與埠、運算符與指令、PC指令系統等的參考資料。
本書既可作為計算機及相關專業彙編語言課程的教材,也可作為開發人員的參考用書。要掌握本書內容,不僅要認真閱讀本書的每個章節,還應使用本書提供的範例並嘗試運行這些範例,並認真完成每章後面的練習。
目錄
目錄
PREFACE
Part A Fundamentals of PC Hardware and Sofware
I Basic FEATURES OF PC HARDWARE
Introduction 1
Bits and Bytes 1
The Binary Number System 3
Hexadecimal Representation 6
ASCII Code 7
PC Components 8
Internal Memory 10
Segments and Addressing 12
Registers 13
Hardware Interrupts 18
Key Points 19
Review Questions and Exercises 19
2 INSTRUCTION ADDRESSING AND EXECUTION
Introduction 22
Features of an Operating System 22
The BIOS Boot Process 23
The System Program Loader 24
The Stack 25
Instruction Execution and Addressing 27
Instruction Operands 29
Protected Mode 29
Key Points 30
Review Questions and Exercises 30
EXAMINING COMPUTER MEMORY AND EXECUTING INSTRUCTIONS
Introduction 32
Using the DEBUG Program 32
Viewing Memory Locations 34
Machine Language Example I:
Using Immediate Data 36
Machine Language Example II:
Using Defined Data 40
An Assembly Language Program 44
Using the INT Instruction 45
Using the PTR Operator 47
Key Points 48
Review Questions and Exercises 49
Part B Fundamentals of Assembly Language
4 REQUIREMENTS FOR CODING IN ASSEMBLY LANGUAGE
Introduction 51
Assembly Language Features 52
Conventional Segment Directives 58
Simplified Segment Directives 62
Initializing for Protected Mode 64
Defining Types of Data 65
Equate Directives 70
Key Points 72
Review Questions and Exercises 73
5 ASSEMBLING,LINKING,AND EXECUTING PROGRAMS
Introduction 74
Preparing a Program for Assembling and Execution 74
………………………………