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