|
楼主 |
发表于 2020-3-4 11:50:55
|
显示全部楼层
我把
a 1000:0 改为各种地址,结果充分揭示[adress]的含义,adress为ds的偏移地址,[adress]为内存地址ds:adress所指的值
-d 1000:0
1000:0000 B8 01 00 8E D8 A1 00 00-8B 1E 01 00 89 D8 A1 00
1000:0010 00 8B 1E 02 00 01 D8 03-06 04 00 B8 00 00 A0 02
-a 0:0 1f
0000:0000 60 10 00 F0 08 00 70 00-08 00 70 00 08 00 70 00
0000:0010 08 00 70 00 60 10 00 F0-60 10 00 F0 60 10 00 F0
-a 1000:0
1000:0000 mov ax,1
1000:0003 mov ds , ax //AX=0001 DS=0803
1000:0005 moy ax; [0] //AX=0008 DS=0001,将0001:0=0000:0010的值0008赋予ax
1000:0008 mov bx,[1] //BX=7000
1000:000C mov ax, bx //AX=7000
1000:000E mov ax, [0] //AX=0008
1000:0011 mov bx, [2] //BX=0070
1000:0015 add ax,bx //AX=0078
1000:0017 add ax, [4] //AX=1060+0078=10D8
1000:001B mov ax,0 //AX=0000
1000:001E mov al,[2] //AX=0070
1000:0021 mov bx, 0 //BX=0000
1000:0024 mov bl,[c] //BX=0060
1000:0028 add,al ,bl //AX=0000+0070+0060=00D0
1000:002A
|
|