(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.
相關文章
- 《轉》組合語言中 cs,ds,ss,es分別是那些英文單詞的縮寫?組合語言
- CS:IP
- CS、IP和PC暫存器
- Linux 基礎教程 27-ss和ip命令Linux
- CS 暫存器 和 IP 暫存器
- ES 5 新增特性彙總
- Win32彙編教程十 定時器的應用 (轉)Win32定時器
- 彙編命令A
- 彙編指令
- 函式組:SI72函式
- EWM Business Partners BP SCM主資料傳輸CIF問題彙總
- SAP HANA 2.0 SP07版本新功能特性彙總
- ES6 常用知識彙總
- nasm彙編ASM
- 彙編指令速查
- 基本彙編指令
- 彙編基礎
- 簡單的IPHelper.cs 訪客IP獲取類
- ARM彙編指令集彙總
- 編譯器如何生成彙編編譯
- iOS逆向之旅(基礎篇) — 彙編(一)— 彙編基礎iOS
- iOS逆向學習筆記 - 彙編(一) - 初識彙編iOS筆記
- DS
- iOS逆向之旅(基礎篇) — 彙編(五) — 彙編下的BlockiOSBloC
- 重新整理彙編—————彙編的基礎理論前置篇
- iOS彙編入門教程(一)ARM64彙編基礎iOS
- 彙編---移位指令
- 彙編快速入門
- 彙編指令(待完善)
- linux彙編指令Linux
- GCC 內聯彙編GC
- [ARM] ARM彙編指令
- 反彙編命令U
- 彙編程式碼Helloworld
- 彙編跳轉指令
- go彙編入門Go
- arm彙編--變數變數
- 學習筆記分享之彙編---2.彙編指令/語法筆記