“Pointers”
Project – Calculations (Picture
8)
•[pa] := address a
•
•*[pa] := 1 ; [a] = 1
•
•*[pb] := 1 ; [b] = 1
•
•*[pb] := *[pb] + *[pa]
•; [b] = 2
•
lea eax, a
mov [pa], eax
mov eax, [pa]
mov [eax], 1
mov ebx, [pb]
mov [ebx], 1
mov ecx, [eax]
add ecx, [ebx]
mov [ebx], ecx