因为括号中的[si]就像地址si处的值,就像C中的*si
并且由于偏移量 si 就像 &si
中的ptr
怎么样mov dword ptr [si], ax
?
假设这种内存情况(所有数字都是十六进制),每个框代表一个字节:
Address Memory content
+---------+
00000000 | 11 |
+---------+
00000001 | 22 |
+---------+
00000002 | 33 | <--- si (= 0002) points here
+---------+
00000003 | 44 |
+---------+
00000004 | 55 |
+---------+
00000005 | 66 |
+---------+
00000006 | 77 |
+---------+
mov dword ptr [si], eax
,eax
包含66554433
。mov word ptr [si], eax
,eax
包含4433
。mov byte ptr [si], eax
,eax
包含33
。