官术网_书友最值得收藏!

Intel Instruction Set Architecture (ISA)

It may virtually be right to say that any digital device has a specific set of instructions. Even a transistor, the foundation stone of modern digital electronics, has two instructions, on and off, where each one is represented by 1 or 0 (which one of these represents on and off depends on whether the transistor is n-p-n or p-n-p). A processor is constructed from millions of transistors and is, as well, controlled by sequences of 1s and 0s (grouped into 8-bit bytes grouped into instructions). Fortunately, we do not have to take care of instruction encoding (it's the 21st century out there) as assemblers do that for us.

Each CPU instruction (and this is right for any CPU, not only Intel based) has a mnemonic designation (further simply mnemonic), which you need to learn about along with a few simple rules regarding operand sizes (and memory addressing, but we will take a deeper look at that in Chapter 4, Memory Addressing Modes), and this is exactly what we will do in this chapter.

We will begin by creating a simple Assembly template, which we will use throughout the book as a starting point for our code. Then, we will proceed to the actual CPU instruction set and get acquainted with the following types of instructions:

  • Data transfer instructions
  • Arithmetic instructions
  • Floating point instructions
  • Execution flow control instructions
  • Extensions
主站蜘蛛池模板: 杨浦区| 醴陵市| 中方县| 昌都县| 上杭县| 交口县| 武胜县| 宜宾县| 丽水市| 那坡县| 孟津县| 南投市| 凤台县| 贵南县| 浮山县| 麟游县| 土默特右旗| 隆回县| 仲巴县| 鄂伦春自治旗| 岚皋县| 子长县| 磴口县| 榆树市| 邳州市| 铁岭县| 平顺县| 天峻县| 蕲春县| 麻城市| 星子县| 龙口市| 蛟河市| 苗栗县| 体育| 丰顺县| 吉首市| 抚顺县| 安宁市| 光泽县| 四子王旗|