美文网首页
(32位汇编 十)SI/DI/BP/SP/IP/CS/DS/ES

(32位汇编 十)SI/DI/BP/SP/IP/CS/DS/ES

作者: 1301c72 | 来源:发表于2017-09-25 22:07 被阅读0次

DS is called data segment register. It points to the segment of the data used by the running program. You can point this to anywhere you want as long as it contains the desired data. ES is called extra segment register. It is usually used with DI and doing pointers things. The couple DS:SI and ES:DI are commonly used to do string operations. SS is called stack segment register. It points to stack segment.

The register SI and DI are called index registers. These registers are usually used to process arrays or strings. SI is called source index and DI is destination index. As the name follows, SI is always pointed to the source array and DI is always pointed to the destination. This is usually used to move a block of data, such as records (or structures) and arrays. These register is commonly coupled with DS and ES.

The register BP, SP, and IP are called pointer registers. BP is base pointer, SP is stack pointer, and IP is instruction pointer. Usually BP is used for preserving space to use local variables. SP is used to point the current stack. Although SP can be modified easily, you must be cautious. It's because doing the wrong thing with this register could cause your program in ruin. IP denotes the current pointer of the running program. It is always coupled with CS and it is NOT modifiable. So, the couple of CS:IP is a pointer pointing to the current instruction of running program. You can NOT access CS nor IP directly.

相关文章

  • (32位汇编 十)SI/DI/BP/SP/IP/CS/DS/ES

    DS is called data segment register. It points to the segm...

  • 汇编01

    8086CPU有14个寄存器,每个寄存器有一个名称。这些寄存器是:AX,BX,CX,DX,SI,DI,SP,BP,...

  • 第八章——数据处理的两个基本问题

    8.1,提出两个问题 1,处理的数据在什么地方? 2,处理的数据有多长? 8.2,BX,BP,SI,DI [......

  • 命题-第五章-选择

    在使用可用于存放操作数地址的寄存器时,默认段前缀是SS的是( ) A. BX B. BP C. SI D DI [...

  • 一些小记

    规定 用//进行解释,但是在实际汇编源程序中不能用//注释 题目 段寄存器 CS,SS不说单说 DS 数据段存储器...

  • 有效地址EA

    16位有效地址是基址寄存器和变址寄存器和位移量的和。 在8086CPU中,只有bx,si,di,bp这4个寄存器可...

  • 汇编语言学习1

    汇编语言学习(王爽2.3章) 1.代码段储存寄存器CS和指令寄存器IP共同决定代码开始执行的位置:(CS左移四位+...

  • 2019-01-29

    分立半导体SI2324DS-T1-GE3介绍: 型号:SI2324DS-T1-GE3 类别:分立半导体产品晶体管-...

  • 汇编学习笔记-函数总结(8086)

    汇编函数结构 函数外传递函数参数(push ss 或者 直接传寄存器) 保护bp:push bp 用bp记录原先s...

  • 【特权级分析】

    cs, ds、es、ss的值,段选择子 段选择子16位:索引号13位,T1(1位):T1=0时指向GDT,T1=1...

网友评论

      本文标题:(32位汇编 十)SI/DI/BP/SP/IP/CS/DS/ES

      本文链接:https://www.haomeiwen.com/subject/ynqjextx.html