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

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
16/32位微机原理、汇编语言及接口技术第二版csdn 是一本关于微型计算机原理、汇编语言和接口技术的教材,适合想要了解和学习这些方面知识的读者。本书通过系统地介绍16位和32位微型计算机的结构、工作原理和基本操作,从而帮助读者理解微机的内部结构和运行机制。 该教材主要分为三个部分: 第一部分介绍了微机的基本原理,包括输入输出设备、存储器、中央处理器等组成部分的功能和工作流程。同时,介绍了数字逻辑电路和微指令流水线的相关知识,为后续学习打下了基础。 第二部分讲解了汇编语言的基本概念和语法规则。通过学习汇编语言,读者可以了解指令的格式和操作方式,以及如何编写简单的汇编程序。该部分还涵盖了数据传送、算术运算、逻辑判断和流程控制等常用指令的使用方法,帮助读者掌握汇编语言的基本技巧。 第三部分介绍了微机的接口技术,包括串行通信接口、并行接口和中断控制技术等。读者可以了解不同接口的工作原理和使用方法,以及如何通过程序控制实现这些接口的功能。 通过阅读这本教材,读者可以全面了解微型计算机的原理、汇编语言和接口技术,从而更好地理解计算机的工作原理和应用场景。对于计算机科学和工程技术的学生以及从事相关工作的专业人士来说,该教材是一本很好的参考资料。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值