博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【译】x86程序员手册01
阅读量:5280 次
发布时间:2019-06-14

本文共 4479 字,大约阅读时间需要 14 分钟。

Intel 80386 Reference Programmer's Manual

80386程序员参考手册

 

Chapter 1 -- Introduction to the 80386

1章 - 80386的介绍

 

The 80386 is an advanced 32-bit microprocessor optimized for multitasking operating systems and designed for applications needing very high performance. The 32-bit registers and data paths support 32-bit addresses and data types. The processor can address up to four gigabytes of physical memory and 64 terabytes (2^(46) bytes) of virtual memory. The on-chip memory-management facilities include address translation registers, advanced multitasking hardware, a protection mechanism, and paged virtual memory. Special debugging registers provide data and code breakpoints even in ROM-based software.

80386是一个为多任务操作系统优化的为高效程序设计的32位微处理器。32位的寄存器和数据通道支持32位地址和数据类型。处理器可以寻址高达4G的物理内在和64M的虚拟内存。芯片上的内存管理设备包括地址转换寄存器,高效的多任务硬件,保护机制以及分页的虚拟内存。额外提供的调试寄存器使即使在ROM中的程序也可以对数据和代码进行断点调试。

1.1 Organization of This Manual 

手册的组织

This book presents the architecture of the 80386 in five parts:

本书将80386的架构分为以下5个部分:

  •  程序设计
  •  系统程序
  •  兼容性
  •  指令集
  •  附录

These divisions are determined in part by the architecture itself and in part by the different ways the book will be used. As the following table indicates, the latter two parts are intended as reference material for programmers actually engaged in the process of developing software for the 80386. The first three parts are explanatory, showing the purpose of architectural features, developing terminology and concepts, and describing instructions as they relate to specific purposes or to specific architectural features.

这种分法是架构本身决定的,本书对每个部分使用不同的方式进行讲述。正如下面的表格所示,后两部分是热衷在80386上进程开发的人员在进行程序设计时的参考资料。前三部分是对架构特性、开发规则和概念以及对指令集的设计目的和特定的架构特性等进行解释。

Explanation 解释说明

  •  
  •  
  •  

Reference 参考资料

  •  
  •  

The first three parts follow the execution modes and protection features of the 80386 CPU. The distinction between applications features and systems features is determined by the protection mechanism of the 80386. One purpose of protection is to prevent applications from interfering with the operating system; therefore, the processor makes certain registers and instructions inaccessible to applications programs. The features discussed in Part I are those that are accessible to applications; the features in Part II are available only to systems software that has been given special privileges or in unprotected systems.

前三部分解释80386CPU的执行模式和保护特性。程序特性和系统特性的区别取决于80386的保护机制。保护机制的一个目的是阻止应用程序干扰操作系统;这样处理器可以确保寄存器和指令对应用程序是透明的。第一部分讨论的特性对应用程序是可访问的;第二部分讨论的特性仅对具有特权的操作系统或在非保护模式下的系统有效。

The processing mode of the 80386 also determines the features that are accessible. The 80386 has three processing modes:

80386的进程模式也决定这些特性是有效的。80386有三种进程模式:

  1. Protected Mode. 保护模式
  2. Real-Address Mode. 实地址模式
  3. Virtual 8086 Mode. 虚拟80086模式

Protected mode is the natural 32-bit environment of the 80386 processor. In this mode all instructions and features are available.

保护模式是80386处理器的自有的32位环境。在这个模式下,所有指令和特性都是有效的可以使用的。

Real-address mode (often called just "real mode") is the mode of the processor immediately after RESET. In real mode the 80386 appears to programmers as a fast 8086 with some new instructions. Most applications of the 80386 will use real mode for initialization only.

实地址模式(通常被称做实模式)是处理器在启动后立即进入的模式。在实模式下,对于程序来说80386就象一个具有新指令集的更快的8086。大部分的80386程序仅在初始化时使用实模式。

Virtual 8086 mode (also called V86 mode) is a dynamic mode in the sense that the processor can switch repeatedly and rapidly between V86 mode and protected mode. The CPU enters V86 mode from protected mode to execute an 8086 program, then leaves V86 mode and enters protected mode to continue executing a native 80386 program.

虚拟的8086模式(也叫V86模式)是一种动态的模式,处理器可以在V86模式各保护模式之间进行快速和重复的切换。CPU从保护模式进入V86模式来执行8086程序,然后切换进入保护模式来继续执行80386的程序。

The features that are available to applications programs in protected mode and to all programs in V86 mode are the same. These features form the content of Part I. The additional features that are available to systems software in protected mode form Part II. Part III explains real-address mode and V86 mode, as well as how to execute a mix of 32-bit and 16-bit programs.

这个特性对于保护模式下的应用程序和所有的V86模式的程序都是一样可以使用的。这些特性构成了第一部分的内容。第二部分额外的特性仅对保护模式下的系统应用有效。第三部分解释实模式和V86模式,同时也对如何执行一个混合的32位和16位程序进行说明。

Available in All Modes 所有模式均有效

 应用程序

Available in Protected Mode Only 仅保护模式有效

 系统应用

Compatibility Modes 兼容模式

 兼容性

1.1.1  应用程序

This part presents those aspects of the architecture that are customarily used by applications programmers.

这部分所展示的架构方面的内容均可以被应用程序使用。

转载于:https://www.cnblogs.com/mqmelon/p/6692041.html

你可能感兴趣的文章
获取今年所有星期天的日期!
查看>>
Google 的开源技术protobuf 简介
查看>>
linux do{} while(0)
查看>>
leetcode230. 二叉搜索树中第K小的元素
查看>>
[WC2008]游览计划
查看>>
经典算法题每日演练——第十八题 外排序
查看>>
LINK : fatal error LNK1104: 无法打开文件“freeglutd.lib”
查看>>
Ajax反填截取路径版
查看>>
iOS开发 点菜系统 使用UIPickerView
查看>>
Spring入门---示例四----集合与数组类型注入【第一天】
查看>>
洛谷—— P1765 手机_NOI导刊2010普及(10)
查看>>
MSIL实用指南-位运算
查看>>
unity 4.x 从入门到精通(持续更新)
查看>>
Ryu学习总结(持续更新)
查看>>
springboot1.5.9整合websocket实现实时显示的小demo
查看>>
zookeeper集群启动顺序问题
查看>>
读书笔记(4)
查看>>
[luogu2486] [SDOI2011]染色
查看>>
docker私有仓库-harbor
查看>>
golang 时间戳 时间格式化 获取当前时间 timestamp 计算时间差
查看>>