您好,欢迎光临本网站![请登录][注册会员]  
文件名称: win_asm.pdf
  所属分类: Windows Server
  开发工具:
  文件大小: 11mb
  下载次数: 0
  上传时间: 2019-07-03
  提 供 者: qq_15******
 详细说明:Windows Assembly Language and Systems Programming 2nd editionContents Page Preface CPu Architecture Preamble ·章音 Power-up the PC The System file Number Systems Registers and m Memory Map of the PC 12 The CPu support Chips Conventional and Extended memory 14 Segments 14 Real mode 17 DOS Real Mode Programming 18 DoS Protected mode programming D■D鲁 Coding Restraints 20 Inside the 286/386/486/etc CPU Registers Instructions ,,23 Real and Protected Modes ,25 Memory management 25 Segmentation Onl 25 Shadow Registers 26 pt 386 Paging.... 28 Virtual-86 Contention issues ile rivileges 1O Privilege ask Switching Interrupt Real mode Interrupts... 33 Protected Mode Interrupts .,34 Postamble 36 /V Page 2 Basic Assembly Language 37 Preamble Stack Instructions.......,.,. b垂· 38 Transfer of Control Conditional Jump∴ 43 Addressing Modes 44 Segment Registers String Instructi 47 Arithmetic Instructions 50 Logical instructions 54 Code and Data labels 56 Code labels 56 Data labels .58 Accessing Data 58 Pointe 59 LES. LDS. and lea Instructions .,........... 60 Local data.,....,.......,.. 2 Type Override 63 Structures 65 Label equate 66 Postamble 67 Opening Windows 69 Preamble 69 DOs versus Windows Programming∴…… 70 Internal differences Building a Windows Application…… Library functio The Mechanics of Assembling and Linking......73 The Link st 74 Two Steps for resources 74 Windows Programming Mechanics 75 Obiects Handles∴ 76 Instances 76 Messages 77 C Syntax 78 Message l 78 Callback Functions ,79 D 82 Ch Page The bare bones 85 Preamble 85 Getting Started 86 Tools required 86 Source files 89 Resource and definition files 89 Message format 90 Make file D鲁 Development Cycle 92 Application structure 94 Preliminary Code 94 Startup Code 96 WINMAINO 98 Callback Function 102 5 High-Level assembly 109 Preamble Include files ;1b4 Microsoft versus borland Skeleton Analysis............. ,,111 MODEL Directive 119 Private and global data 120 MASM Versus TASM Scope 121 TASM s Life of automatic data 122 Assembling and Linking .........,. 123 MASM6 VerSuS TASM 125 WiNDOWS Qualifier∴. 26 Prototypes 127 Callback Design .129 Other Incompatibility 130 MASM ASSembling and Linking 131 MASM6 Program Listing 132 Program Design 137 Preamble 137 Object Addressing 138 Calling a Function 138 Early Binding∴… 141 Late Binding 142 C++ Binding ,,142 Ch Page Assembly Language Binding∴……… 145 Use of this ,,,,145 Interfacing with C++ 147 Compiling to ASM O/P 147 In-Line Assembly ,148 In-Line dos and don'ts 149 The asM Stub ,150 Compile and assemble steps 151 The Amazing 9-Line Program ,153 a Skeleton Program ,154 Overrides 156 Kickstart 157 Message handling 157 The WindoW Object∴. ,158 WINMAINO 162 Callback 165 MAKEO 168 Inheritance Getting it Together∴ 175 Postamble 178 7 PC Hardware 179 Preamble 179 CPu bus 179 Control bus 180 Address decoder ,182 IO Ports∴…∴………∴………∴………∴∴……∴… IO Instructions ,184 Keyboard Interface... 184 AT-Class Keyboard Port Enhancements .......,. 186 PC Expansion buses∴ 187 Industry Standard Architecture(ISA)…………188 Peripheral Connect Interface(PCD) ●音··,自· 19 Postamble 194 8 BIOs, Dos, Windows Low-Level Services 195 Preamble 195 BIOS and dos services Standard dos Interrupts ,,200 DOS Protected Mode Interface (DPMI) ,203 INT-2Fh Extensions 205 age Windows functions 207 Thunking . 219 Generic Thunking 219 More win95“ Improvements”, 222 Device io control 222 Dynamically Loadable Drivers∴∴… 223 Threads ..,. 223 Memory Mapped Files 224 Postamble 224 9 Direct Hardware Access 5 Preamble ,,225 Initialisation 226 Addressing Segments 227 Direct vide 229 Restore video 鲁鲁··●曹 231 Change video Mode 232 a Direct-Video text-Mode routine 232 Call REPaintSCreeNo 234 Ordinal coordinates 235 To and From Text mode 236 Video Output Issues .,237 Message Input 238 Experimenting∴…………………239 A Direct-Video Window program 239 IO Ports 244 10 Real-Time Events 249 Preamble 249 TSRs 250 Hooking aⅤ ector 251 Service Routine (Isr) 253 sting 25 Hardware Interrupts 256 XT Hardware Interrupts AT Hardware Interrupts………………………257 Windows' Standard Mode hardware Interrupts 258 Interrupt Handler Code 260 Enhanced Mode Hardware Interrupts∴………263 Direct memory Access.,...,. 264 11 Real Mode Access 267 ch P age Preamble 267 Accessing Real Mode from Protected Mode .268 Accessing Real Mode via the IVt 269 irtual machines 27 DOS TSRS 273 Accessing Protected Mode from Real Mode 275 Signalling a WinApp from a doSapp 276 Passing Control to the winApp ,278 The DoSapp "Signaller 280 Hooking a Real Mode Interrupt from a winApp 283 12 32-Bit Ring O 287 Preamble 287 16-and 32-Bit Programming 288 Ring Transition Mechanism 291 Call Gate Stru 292 Ring Transition Example Code 294 FLAT Memory 300 Moving on 305 13 32-Bit Ring 307 P ble 307 TASM5 versus MASM6 308 Installing TAsM5 309 Example Skeleton Program 310 Support Files 314 Postamble 318 14 DOS-Win Transitions 319 Preamble Interrupt handle 320 Example Protected Mode ISR Code 321 Problems/Issues with the Protected Mode Isrs 323 The Real Mode handler 324 DOS-to-Win device driver/TSR 330 Automatic Loading of Windows Programs/Drivers.. 330 TSR Installation .,. .331 TSR Resident Code..,,... 338 Getting it Togeth .339 15 Advanced Systems Programming 341 Preamble 341 Mapping Across VMs∴ ,343 Page Mapping the 4.3G Linear Address Space of a VM to Physical memory 344 The Windows/DOS/DPMI Relationship 348 Windows extensions to int-2Fh .348 The Windows/INT-2Fh Relationship 349 Writing Windows-Aware DOSApps 349 Sharing Memory Between 16-and 32-bit WinApps 350 Anatomy of a Vxd ..,351 Maximum Productivity 358 Lab view Programming…… ∴,359 Disadvantages of labview 360 Integration with Assembl .362 Layout Programming 363 Comparison with Lab view .364 Integrating with assembly 365 Assembly versus High-Level Languages 367 A Instruction Summary 369 B Keyboard Tables 379 Virtual Keys 379 Extended ANSI 382 IBM ASCIL 甲·番鲁 383 C DPMI Services 385 DPMI INT-3lh Functions Listed by Functional Group 385 DPMI Services Detail 389 D INT-2F Extensions 401 INT-2F Extensions Detail 403 Index 413 Product Publication References 419 People 419 CPU Architecture Preamble Structure of This chapter starts off from when a pc is first turned on, and I the first two have assumed only a basic familiarity with computer principles chapters The focus is on the architecture of the CPu, that is, how the processor itself works Chapter 2 takes the next step by introducing the instruction set, the machine instructions that the processor understands A study i have structured the material like a ladder from a very basic level method so feel free to jump over any parts that you are already familiar with I recommend going through it with the objective of picking up the overall ideas, not worrying too much about nitty gritty details. A practical plan of action is to surge forward until you get to the chapters with some hands-on examples, then when you need to know some of the fine details, refer back as needed. You'll find the index to be comprehensive, with this in mind x86 fami In keeping with the ladder concept, I have covered the entire x86 compatibility family of processors, from the humble 8088 to the Pentium It is very important to note that these later CPUs are downward compatible, meaning they will run software from an earlier CPU though the reverse is not necessarily true In this chapter i point out some of the major differences between the CPUs of the Intel family
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: win_asm.pdf
 输入关键字,在本站1000多万海量源码库中尽情搜索: