2

我正在尝试跟踪我使用 turbo 汇编器搜索过的程序,但我储存了以下值:

cs:0006->8ED8           mov ds,ax
cs:0392->66B800060000   mov eax,00000600
cs:039A->66B900000000   mov ecx,00000000

有人可以帮我解释一下吗?特别是cs部分显示的数字。

4

1 回答 1

2

“cs”指的是当前代码段,后面的数字指的是段内的偏移量。箭头后面的数字是指令的操作码。

cs:0006->8ED8           mov ds,ax
 ^   ^     ^
 |   |     |
 |   |     +-- Opcode of the "mov ds,ax" instruction
 |   |
 |   +-- Offset of the instruction within the code segment (6 bytes)
 |
 +-- Current code segment, see contents of your CS register

有关更多详细信息,另请参阅X86 内存分段

有关 x86 操作码的列表,请参阅http://ref.x86asm.net/

于 2013-02-13T15:22:33.823 回答