Intel匯編語(yǔ)言程序設(shè)計(jì)

出版時(shí)間:2009-5  出版社:清華大學(xué)出版社  作者:(美)埃爾溫 著  頁(yè)數(shù):705  
Tag標(biāo)簽:無(wú)  

前言

PREfaCEAssembly Language for intel-Based Computers, Fifth Edition, teaches assembly language programs suage for intel-Based Computers, Fifth Edition, teaches assembly language program.,,.ining and architecture for intel lA-32 processors. It is an aDproDriate text for the following tvDes ofs and architecture for intel lA-32 processors. It is an appropriate text for the following types ofcollege courses:. AssemblV Language Programmingy Language Programming. Fundamentals of Computer Systems. Fundamentals of Computer ArchitectureStudents use intel or AMD processors and program with Microsoft Macro Assembler (MASM)8.0, running on any of the following MS-Windows platforms: Windows 95, 98, Millenium, NT, 2000,and XP.Although this book was originally designed as a programming textbook for college students, it has.if this book was originally designed as a programming textbook for college students, it hasevolved over the last 15 years into much more. Many uniVersities use the book for their introductoryJ J ycomputer architecture courses. As a testament to its popularity, the foufth edition was tfanslated into..KOrean, Chinese, French, Russian, and Polish.Emphasl'S of TOPiCS This edition includes topics that lead naturally into subsequent courses incomputer architecture, operating systems, and compiler writing:4,. Virtual machine concept. Elementary boolean operations; Doolean operations. Instruction execution cVcley de. Memory access and handshakingJ 5. Interrupts and polling. Pipelining and superscalar concepts. Hardware-based I/O. Floating-point binary representationOther topics relate specifically to intel lA-32 architecture:'. lA-32 protected memory and paging.. MemorV segmentation in real-address modeJ segmentation in real-address mode. 16-bit intemipt handling. MS-DOS and BIOS sVstem calls (interrupts)y item calls (interrupts). lA-32 Floating-Point Unit architecture and programming. lA-32 Instruction encodingCeftain examDles Dresented in the book lend themselves to courses that occur later in a comDUterpies presented in the book lend themselves to courses that occur later in a computer..,science curriculum:. Searching and sorting algorithms. High-level language structures.h-level language structures. Finite-state machines. Code optimization examples'.XIXU PREfACEimprOVementS in the Rfth Edition A number of improvements and new information have beenadded in this edition, listed in the following table by chapter number fStill a Programming Book This book is still focused on its original mission: to teach students howto write and debug programs at the machine level. It will never replace a complete book on computerarchitecture, but it does give students the first-hand experience of writing software in an environmentthat teaches them how a computCr works. Our premise is that students retain knowledge better whentheory is combined with experience. In an engineering course, students constrict prototypes; in acomputer architecture course, students should write machine-level programs. In both cases, they have amemorable experience that giVes them the confidence to work in any OS/machine-oriented environment.Real MOds and Protsctsd MOds This edition emphasizes 32-bit protected mode, but it still hasthree chapters devoted to real-mode programming. For example, there is an entire chapter on BIOSprogramming for the keyboard, video display (including graphics), and mouse. Another chapter covers MS-DOS programming using interrupts (system calls). Students can benefit from programmingdirectly to hardware and the BIOS.The examples in the first half of the book are nearly all presented as 32-bit text-oriented aPPlicationsruwhng in protected mode using the flat memory model. This approach is wonderfully simple because itavoids the complications of segment-offset addressing. Specially marked paragraphs and popup boxespoint out occasional differences between protCcted mode and real mode programming. Most differencesare abstracted by the book's parallel link libraries for real mode and protected mode programming.Link LibrarieS We supply two versions of the link library that students use for basic input-output,simulations, timing, and other useful stuff. The 32-bit version (lrvine32.lib) runs in protected mode,sending its output to the Win32 console. The 16-bit version (lrvine16.lib) runs in real-address mode.Full source code for the libraries is supplied on the book's Web site. The link libraries are availableonly for convenience, not to prevent stlldeflts from learning how to program input-output themselves.Stlldents are encouraged to create their own libraries.PREfACE fbiIncludsd Software and EX8mPI8s All the example programs were tested with Microsoft MacroAssembler Version 8.0. The 32-bit C++ applications in Chapter 12 were tested with Microsoft VisualC++ .NET. The real-address mode programs in Chapter 12 (linking to C++) were assembled withprograms in Chapter 12 (linking to C++) were assembled withBorland Turbo Assembler (TASM).W8b Sits informatl'On Updates and corrections to this book may be found at the book's Web site,http: //www. asmi rvi ne. corn, including additional programming projects for instructors to assignat the ends of chapters. If for some reason you cannot access this site, information about the book andpiers. If for some reason you cannot access this site, information about the book anda link to its current Web site can be found at www. prenhall. corn by searching for the book title or forthe author name "Kip lrvine."Overall GoalsThe following goals of this book are designed to broaden the student's interest and knowledge in top. 1ics related to assembly language:; language:. Intel lA-32 processor architecture and programming. Real-address mode and protected mode programming. AssemblV language directiVes, macros, operators, and program structurey language directiVes, macros, operators, and program structure. Programming methodology, showing how to use assembly language to create system-level soft.ramming methodology, showing how to use assembly language to create system-level software tools and application programs. Computer hardware manipulation. Interaction between assembly language programs, the operating system, and other aPPlication programsJ a o programs, the operating systCm, and other aPPlication programsOne of our goals is to help students approach programming problems with a machine-level mindset. It is impoftant to think of the CPU as an interactiVe tool, and to learn to monitor its operation asdirectly as Dossible. A debugger is a programmer's best friend, not only for catching errors, but as anJ as possible. A debugger is a programmer's best friend, not only for catching errors, but as aneducational tool that teaches about the CPU and operating system. We encourage students to lookbeneath the surface of high-level languages and to realize that most programming languages aredesigned to be portable and, therefore, independent of their host machines.In addition to the short examples, this book contains hundreds of ready-to-run programs that demonstrate instructions or ideas as they are Dresented in the text. Reference materials, such as guides toJ presented in the text. Reference materials, such as guides toMS-DOS interrupts and instruction mnemonics, are available at the end of the book.RequiTed BaCkground The reader should already be able to program confidently in at least oneother programming language, preferably Java, C, or C++. One chapter covers C++ interfacing, so it isvery helpful to have a compiler on hand. I have used this book in the classroom with majors in both.'computer science and management information systems, and it has been used elsewhere in engineer.lug courses.FeaturesCOmPI8ts Program LiStingS A companion CD-ROM contains all the source code from the examples in this book. Additional listings are available on the book's Web page. An extensive link library issupplied with the book, containing more than 30 procedures that simplify user input-output, numeric.,.', n 1, 11.'.processing, disk and file handling, and string handling. In the beginning stages of the course, studentscan use this library to enhance their programs. Latef, they can create their own procedures and addthem to the librarV'y.Programming LOgiC TWo chapters emphasize boolean logic and bit-level manipulation. A con. scions attempt is made to relate high-level programming logic to the low-level details of the machine.This approach helps students to create more efficient implementations and to better understand howcompilers generate object code...all PREfACEHardWare and OOeratl'na SyStsm ConceotS The first two chanters introduce basic hardwareperatl'ng Spetsm ConceptS The first two chapters introduce basic hardwareand data representation concepts, including binary numbers, CPU architecture, status flags, and memory.mapping. A survey of the computer's hardware and a historical perspectiVe of the intel processor familyhelps students to better understand their target computer system.StFUctUred Proaramml'na Approach BeZinning with Chapter 5, procedures and functional decomsramming APProach Beginning with Chapter 5, procedures and functional decomposition are emphasized. Students are giVen more complex programming exercises, requiring them tofocus on design before starting to write code.DI'Sk Storaae ConceDtS Students learn the fundamental principles behind the disk storage systemHe ConceptS Students learn the fundamental principles behind the disk storage systemon MS-Windows--based sVstems from hardware and software Doints of view.y items from hardware and software points of view.Creatl'na LI'nk LI'braries Students are free to add their own Drocedures to the book's link libraryd Link LI'brarieS Students are free to add their own procedures to the book's link libraryand create new libraries. TheV learn to use a toolbox approach to programming and to write code thatJ learn to use a toolbox approach to programming and to write code that.is useful in more than one program.MaCros and StFUctUres A chapter is devoted to creating structures, unions, and macros, which areesential in assemblV language and systems programming. Conditional macros with advanced operas language and systems programming. Conditional macros with advanced operators serve to make the macros more professional.professional.IRtsrfscina tO High-Level Lanauaaes A chanter is devoted to interfacinZ assembly lanZuaZe to Cs ic High-Level Languages A chapter is devoted to interfacing assembly language to Cand C++. This is an important job skill for students who are lacely to find jobs programming in high-levelJlanguages. They can ie~ to optimize their code and see examples of how C++ compilers optimize code.InstFUctional Al'dS All the program listings are available on disk and on the Web. Instructors are provided a test baal, answers to review questions, solutions to programming exercises, and a Microsoft.Powerpoint slide presentation for each chapter.. Summary of ChaDtersy of ChaptersChapters I to & contain a basic foundation of assembly language and should be covered in sequence.. After that, you have a fair amount of freedom. The following chapter dependency graph shows howlater chapters depend on knowledge gained from other chapters. Chapter 10 was split into two partsJfor this graph because no other chapter depends on one's knowing how to create macros:.laph because no other chapter depends on one's knowing how to create macros:@ UMughs 491. Basic Concepts: Applications of assembly language, basic concepts, machine language, and datarepresentation.2. lA-32 Processor Architecture: Basic microcomputer design, instruction execution cycle, lA-32.t.processor architecture, lA-32 memory management, components of a microcomputef, and the.input-output system.3. Assembly LanZuage Fundamentals: Introduction to assembly language, liaring and debugging,J Language Fundamentals: Introduction to assembly language, liaring and debugging,and defininZ constants and variables.5PREfACE XXiii4. Data Transfers, Addressing, and Arithmetic: Simple data transfer and arithmetic instructions,assemble-link-execute cVcle, operators, directiVes, expressions, JMP and LOOP instructions, andJ, operators, directiVes, expressions, JMP and LOOP instructions, andindirect addressing.5.5. Procedures: Linking to an external library, description of the book's link library, stack opera..nons, defining and using procedures, flowchins, and top-down structured design.6. Conditional Processing: Boolean and comparison instructions, conditional jumps and loops,high-level logic structures, and finite state machines.7. Integer Arithmetic: Shift and rotate instructions with useful applications, multiplication anddiVision, extended addition and subtraction, and ASCll and packed decimal arithmetic.8. Advanced Procedures: Stack parameters, local variables, advanced PROC and INVOKE direc..tives, and recursion.9. Strings and Arrays: String primitiVes, manipulating arrays of characters and integers, twodimensional arraVs, sorting, and searching.y o, hcf ting, and searching.10. Structllres and Macros: Stmctures, macros, conditional assembly directiVes, and defining repeat blocks.11. MS-Windows Programming: Protected mode memory management concepts, using the MicrosoftWindows API to display text and colors, and dynamic memory allocation.12. High-Level Language interface: Parameter passing conventions, inline assembly code, and linkingassemb1V language modules to C and C++ programs.y language modules to C and C++ programs.13. 16-Bit MS-DOS Programming: Calling MS-DOS interrupts for console and file input-output.14. Disk Fundamentals: Disk storage systems, sectors, clusters, directories, file allocation tables, handlingMS-DOS error codes, and driVe and directory m~ulation.15. BIOS-Level Programming: Keyboard input, video text, graphics, and mouse programming.16. ExDert MS-DOS Programming: Custom-designed segments, runtime program structure, andpert MS-DOS Programming: Custom-designed segments, runtime program structure, andInterrupt handling. Hardware control using I/O ports.17. Floating-Point Processing and instruction Encoding: Floating-point binary representation andfloatinZ-DOint arithmetic. Learning to program the lA-32 Floating-Point Unit. Understanding theo point arithmetic. Learning to program the lA-32 Floating-Point Unit. Understanding theencoding of lA-32 machine instructions.5Appendix A: MASM ReferenceAppendix B: The lA-32 Instruction SetAppendix C: BIOS and MS-DOS InterruptsAppendix D: Answers to Review QuestionsReference MaterialsW8b Site The author maintains an actiVe Web site at www.asmirvine.com.H8lP the Help file (in Windows Help Format) by Gerald Cahill of Antelope Valley College. Documents the book's link libraries, as well as Win32 data structures.Assembly Language Workbook An interactive workbook is included on the book's Web site, cover'. 1. Ilug such important topics as number conversions, addressing modes, register usage, Debug program.'minZ and floating-point binary numbers. The content pages are HTML documents, making it easyb, and floating-point binary numbers. The content pages are HTML documents, making it easyfor students and instructors to add their own customized content. This workbook is also available onthe book's Web site.Debugging Tools Tutorials on using Microsoft CodeView, Microsoft Visual Studio, and MicrosoftWindows Debugger (WinDbg).BIOS and MS-DOS Im6rruntS Appendix C contains a brief listing of the most-often-used INT 10hptS Appendix C contains a brief listing of the most-often-used INT 10h(video), INT 16h (keyboard), and INT Zlh (MS-DOS) functions.Instfucaon Set Appendix B lists most nonprivileged instructions for the lA-32 processor family.. D rXXIV PREfACEFor each instruction, we describe its effect, show its syntax, and show which flags are affected.Powerpoint Presentoaons A complete set of Microsoft Powerpoint presentations written by the author.AcknowledgmentsSpecial thanks are due to Tracy Dunkleberger, Executive Editor for Computer Science at PrenticeHall, who provided friendly, helpful guidance during the writing of the fifth edition. Karen Ettingerdid a terrific job as production editof, constantly keeping track of numerous minute details. Camille,oh as production editof, constantly keeping track of numerous minute details. CamilleTrentacoste was the book's managing editor.Fifth EditionI offer mV special thanks and gratitude to the following professors who boosted my morale, gave meJ peelal thanks and gratitude to the following professors who boosted my morale, gave megreat pedagogical tips, and tirelessly examined the entire book. They have been a huge influence onthe development of this book, in some cases across multiple editions:. Gerald Cahill, Antelope Valley College. James Brink, Pacific Lutheran University. William Barrett, San Jose State UniVersityMany thanks to Scott Blackledse and John Tavior, both professional programmers, who proofreadJ s Jlor, both professional programmers, who proofreadmost of the manuscript and flagged numerous errors. Several people reviewed individual chapters:. Jerry JoVce, Keene State CollegeJ J, Keene State College. Tianzheng Wu, Mount Mercy College. Ron Davis, Kennedy-King College. David Topham, Ohlone College. Harvev Nice. Depaul UniVersitVJ, Depaul UniVersityFOurth EditionThe following people were tremendously helpful in creating the fourth edition.o people were tremendously helpful in creating the fourth edition.. Gerald Cahill, Antelope Valley College. James Brink, Pacific Lutheran University. Maria Kolatis, County College of Moms. Tom JoVce, Chief Engineer at Premier Heart, LLC.. Jeff WOthke, Purdue Calumet University. Tim DowneV, Florida international Universityy, florida international UniversityThe followinZ individuals Drovided valuable Droofreading help in the fourth edition fo individuals provided valuable proofreading help in the fourth edition f. Andres Altamirano, Miami. Courtnev Amor, Los Angelesy Amor, Los Angeles. Scott Blackledge, Platform Solutions, Inc.. Ronald Davis, Kennedy-King College. Ata Elahi, Southern Connecticut State UniversitV. Jose Gonzalez, Miami. LeroV Highsmith, Southern Connecticut State UniVersity.. Sand lqbal, Faran institute of Technology,id lqbal, Faran institute of Technology. Charles Jones, Maryville College. Vincent KaVes, Mount St. Mary CollegeJ.. Eric Kobrin, Miami. Pablo Maurin, Miami. BarrV Meaker, Design Engineer, Boeing Corporationy bleaker, Design Engineer, Boeing Corporation. Ian Merkel, Miami. Sylvia Miner, MiamiPREfACE XXV. M. Nawaz, OPSTEC College of Computer Science. Kam Ng, Chinese University of Hong Kong. Hien Nguyen, Miami. Ernie Philipp, Northern Virginia Community College.. BoVd SteDhens, UGMO Research, LLCJ phens, UGMO Research, LLC. John Taylor, EnglandJ 5 england. ZacharV TaVlor, Columbia ColleZe, laylor, Columbia College. Virginia Welsh, Community College of Baltimore County.inia Welsh, Community College of Baltimore County. Robert WOrkman, Southern Connecticut State UniversityJ. Tianzheng Wu, Mount Mercy College& flu, Mount Mercy College. Matthew Zukoski, Lehigh University

內(nèi)容概要

本書(shū)全面細(xì)致地講述了匯編語(yǔ)言程序設(shè)計(jì)的各個(gè)方面。從微處理器體系結(jié)構(gòu)、工作機(jī)制到指令集;從最基本的編譯器鏈接器的使用到高級(jí)過(guò)程、結(jié)構(gòu)和宏的使用;從用純匯編編寫(xiě)程序到用VC++、BC++等最新編譯器與匯編的混合接口編程;從16位實(shí)模式下BIOS、DOS實(shí)模式文本及圖形程序設(shè)計(jì)到32位保護(hù)模式的Windows程序設(shè)計(jì);從磁盤(pán)基礎(chǔ)知識(shí)到Intel指令編碼、浮點(diǎn)運(yùn)算等相關(guān)知識(shí)都做了深入而細(xì)致的講解?! ”緯?shū)內(nèi)容廣博,但又講解得非常深入,是匯編語(yǔ)言課程的很好教材。

作者簡(jiǎn)介

作者:吉普 (美國(guó))埃爾溫

書(shū)籍目錄

Preface 1 sasic Concepts   1.1 Welcome to Assembly Lanauaae   1.2 Virtual Machine Concept  1.3 Data Representation  1.4 soolean Operations  1.5 Chapter Summary 2 IA-32 Processor Architecture  2.1 General Concepts  2.2 IA-32 Processor Architecture  2.3 IA-32 Memory Management  2.4 Components of an lA-32 MicrocomDuter  2.5 Input-Output System  2.6 Chapter Summary 3 Assembly Language Fundamentals  3.1 Basic Elements of Assembly Language  3.2 Example: AddingThree Integers  3.3 Assemblina, Linkina, and Runnina Proarams  3.4 Defining Data  3.5 Symbolic Constants  3.6 Real-Address Mode Proarammina (Optional)  3.7 Chapter Summary  3.8 Proqrammina Exercises 4 Data Transfers, Addressing,and Arithmetic 5 Procedures 6 Conditional Processing 7 Integer Arithmetic 8 Advanced Procedures 9 Strings and Arrays 10 Structures and Macros 11 MS-Windows Proarammina 12 High-Level Language interface 13 16-Bit MS-DOS Programming 14 Disk Fundamentals 15 BIOS-Level Programming 16 Expert MS-DOS Programming 17 Floating-Point Processing and instructionAppendix A MASM Reference Appendix B The lA-32 Instruction Set Appendix C BIOS and MS-DOS Interrupts Appendix D Answers to Review Questions

編輯推薦

1. 《Intel匯編語(yǔ)言程序設(shè)計(jì)》組織結(jié)構(gòu)靈活,教師可根據(jù)需要按不同的順序、不同的深度進(jìn)行授課。2. 以32位保護(hù)模式編程為默認(rèn)模型,使讀者更容易理解和接受。3. 為32位和16位程序設(shè)計(jì)給出了擴(kuò)展的鏈接庫(kù),包括用于簡(jiǎn)化輸入/輸出、數(shù)字處理、磁盤(pán)與文件處理,以及字符串處理等的40多個(gè)函數(shù)。4. 作者為每章提供了測(cè)試題庫(kù),方便教師準(zhǔn)備考試。 5. 以自上而下的方式探究和解析程序的設(shè)計(jì)思想和過(guò)程。6. 作者提供了內(nèi)容豐富的教學(xué)課件。 7. 每小節(jié)后面都給出了復(fù)習(xí)題,有助于學(xué)生掌握所學(xué)知識(shí)。8. 為教師提供了復(fù)習(xí)題和編程練習(xí)題答案。

圖書(shū)封面

圖書(shū)標(biāo)簽Tags

無(wú)

評(píng)論、評(píng)分、閱讀與下載


    Intel匯編語(yǔ)言程序設(shè)計(jì) PDF格式下載


用戶評(píng)論 (總計(jì)23條)

 
 

  •   匯編語(yǔ)言中文版缺貨,因此買(mǎi)了英文版,紙質(zhì)很好,書(shū)的大小比中文稍小一點(diǎn),比中文版的還要輕,攜帶很方便。印刷質(zhì)量也完全沒(méi)有問(wèn)題,雖然沒(méi)有光盤(pán) 不過(guò)光盤(pán)內(nèi)容可以很容易地在網(wǎng)上下載~
  •   1.匯編是面向硬件的語(yǔ)言,一個(gè)不會(huì)匯編的程序員永遠(yuǎn)是二流的
    2.這本書(shū)印制很好
    3.內(nèi)容相當(dāng)好
    4.又可以學(xué)英語(yǔ)
    5.當(dāng)當(dāng)送貨太快了,雖然我這里是郊區(qū),但沒(méi)要2天
  •   書(shū)真的很好,想看英文版又想學(xué)匯編,這本書(shū)絕對(duì)是不錯(cuò)的選擇!
  •   這本書(shū)是難得的通俗易懂的匯編入門(mén)經(jīng)典書(shū)
  •   非常好!對(duì)學(xué)習(xí)匯編挺有幫助的,另外還可以學(xué)習(xí)英語(yǔ)。我就是把他當(dāng)英語(yǔ)課本來(lái)讀的,真是一舉兩得!
  •   基礎(chǔ)的東西,還好
  •   這是一本好書(shū),很好的一本書(shū)。。程序員都應(yīng)該讀一讀。。
  •   挺好的,想看到的內(nèi)容,基本上都有了
  •   這書(shū)是教程
  •   還沒(méi)看呢,感覺(jué)還是不錯(cuò)的。第一次買(mǎi)全英文的書(shū),就是看著有點(diǎn)眼暈,希望能鍛煉自己的英語(yǔ)水平
  •   就是英文差了點(diǎn),看著有點(diǎn)吃力……
  •   非常推薦...十分詳細(xì)....
  •   讀英文原版還是挺費(fèi)工夫的 不過(guò)更能夠與國(guó)際接軌嘛 呵呵
  •   剛買(mǎi),拿到手,一口氣讀了三章。很好。沒(méi)有復(fù)雜的英文長(zhǎng)句,讀這些書(shū),順帶提供英文。當(dāng)然,看書(shū)的時(shí)候,還是開(kāi)著電腦,查查金山詞霸的。

    正在看,推薦有興趣的朋友也看看。其實(shí)看了英文的東西,再看中文,好多縮寫(xiě)的詞原來(lái)不明白現(xiàn)在一看就知道了。
  •   兒子說(shuō)滿好滴
  •   但是這些全面的資料居然需要翻墻才能下載。。。。
  •   怎么是英文的,就沒(méi)有中文的嗎
  •   很不錯(cuò)的外語(yǔ)教材。值得一看
  •   國(guó)外有牛人說(shuō)本書(shū)過(guò)于字典化, 不適合做教材。然而, 個(gè)人覺(jué)得書(shū)所配套的, 能得到的資源也很重要, 網(wǎng)上有大把這書(shū)的 instructor menual 等素材, 這書(shū)是符合基本國(guó)情的 the best one .
  •   發(fā)貨速度很快,第二天就到了。就是書(shū)有點(diǎn)舊了。跟二手書(shū)似的。
  •   為什么封面第五版的英文被翻譯成“fiveth edition”? 懷疑是不是盜版額
  •   這本書(shū)比起中文版來(lái)好多了,學(xué)習(xí)匯編之余還可以學(xué)點(diǎn)英語(yǔ),通俗易懂,非常值得推薦。
  •   看這類書(shū),最好英文版,省的還要琢磨譯者的意思
 

250萬(wàn)本中文圖書(shū)簡(jiǎn)介、評(píng)論、評(píng)分,PDF格式免費(fèi)下載。 第一圖書(shū)網(wǎng) 手機(jī)版

京ICP備13047387號(hào)-7