Arithmetic Project – Memory Layout and Registers
•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”
•
•64bit Registers RAX, RDX, …, R10, R11, …
•
•In C we define 64bit memory locations “a” and “b” as:
•
• static __int64 a, b;
•
•In MASM we define 64bit memory locations as
•
• a QWORD 0
• b QWORD 0