5
“Arithmetical” Project – Memory Layout and Registers (Picture 2)
•Two memory addresses (locations):
• “a” and “b”. We can think about “a” and “b” as names of addresses (locations)
•Notation [a] means contents at the memory address (location) “a”
•Registers EAX and EDX.
•In C we declare memory locations “a” and “b” as:
•static int a, b;