14
“Arithmetical” Project –
Calculations (Picture 4)
•
[a] := 1
•
[b] := 1
•
[b] := [b] + [a]
; [b] = 2
•
; eax = 1
•
[b] := [b] * 2
; [b] = 4
mov
[a], 1
mov
[b], 1
mov eax, [a]
add [b], eax