Question: This problem has been solved! See the answer Need it ASAP!!!! ONLY ATTEMPT IT IF YOU KNOW HOW TO DO IT. DONT COPY PASTE!!! Below

This problem has been solved!

See the answer

Need it ASAP!!!!

ONLY ATTEMPT IT IF YOU KNOW HOW TO DO IT. DONT COPY PASTE!!!

Below are the conents of some registers and some memory. (For simplicity, the contents of memory are displayed as a sequence of 64-bit words and not individual bytes.) What happens if we execute the instruction at memory address 0x40047d?

40047d: e8 1a 00 00 00 callq 40049c

400482: 48 8d 04 1b lea (%rbx,%rbx,1),%rax

register value

rbx 0x7fffffffffabc8

rsp 0x7fffffffffabb8

address value

0x7fffffffffabb0 0x4d400

0x7fffffffffabb8 0x4d300

0x7fffffffffabc0 0x4d200

0x7fffffffffabc8 0x4d100

(1)The value 0x40047d is stored at 0x7fffffffffabb0, the value of %rsp is set to 0x7fffffffffabb0, and the next instruction that executes is at location 0x40049c.

(2)The value 0x400482 is stored at 0x7fffffffffabb0, the value of %rsp is set to 0x7fffffffffabb0, and the next instruction that executes is at location 0x40049c.

(3)The value 0x400482 is stored at 0x7fffffffffabc0, the value of %rsp is set to 0x7fffffffffabc0, and the next instruction that executes is at location 0x40049c.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!