[英]Do offsets in assembly represent addresses or bits?
I am a bit confused, will inc [esi + 8] (lets say [esi] points to 0x0000001F in 8-bit memory) increment 0x00000027 or will it affect 0x00000020?我有点困惑,inc [esi + 8](假设 [esi] 指向 8 位内存中的 0x0000001F)会增加 0x00000027 还是会影响 0x00000020? I have seen a video implying it will affect the latter whereas regular pointers in ram go by addresses, not bits.
我看过一段视频,暗示它会影响后者,而 ram go 中的常规指针是地址,而不是位。
Addresses are bytes.地址是字节。 This will increment
0x00000027
.这将增加
0x00000027
。
This doesn't assemble because you're missing the size though.这不会组装,因为您缺少尺寸。
inc {byte|word|dword|qword} ptr [esi + 8]
is what you want. inc {byte|word|dword|qword} ptr [esi + 8]
是你想要的。 (Operand size is required) (需要操作数大小)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.