4 回答

TA貢獻(xiàn)2011條經(jīng)驗(yàn) 獲得超2個(gè)贊
struct Point { int xcoord; int ycoord; };
int y = points[i].ycoord;
points[]
Point
EBX
i
EAX
xcoord
ycoord
ycoord
MOV EDX, [EBX + 8*EAX + 4] ; right side is "effective address"
y
EDX
Point
int *p = &points[i].ycoord;
ycoord
LEA
MOV
LEA ESI, [EBX + 8*EAX + 4]
ESI
.

TA貢獻(xiàn)1820條經(jīng)驗(yàn) 獲得超9個(gè)贊
LEA Rt, [Rs1+a*Rs2+b] => Rt = Rs1 + a*Rs2 + b
- 4 回答
- 0 關(guān)注
- 1157 瀏覽
添加回答
舉報(bào)