{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework3_SOL

# Homework3_SOL - 0x104 0x37ABDF03 0x108 0x39AB660A Please...

This preview shows pages 1–2. Sign up to view the full content.

Homework 3 1. Memory and Register . We have the following values in the corresponding memory address and registers Address Value 0X104 0x4A 0x108 0x1F3C 0x10C 0x3954 0x130 0x73 0x148 0x80372633 Fill in the blanks with the right value: Operand Value %edx 0x4 0x108 0x1F3C (%eax) 0x4A 48(%ecx) 0x73 (%eax,%edx) 0x1F3C (%ecx,%edx,2) 0x1F3C 0x4(%ecx,%ebx,8) 0x3954 \$0x783 0x783 2. Move Instruction. We have the following values in the corresponding memory addresses and registers. Register Value %eax 0X104 %ecx 0X100 %edx 0X4 %ebx 0x1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Address Value 0X100 0x4A
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 0x104 0x37ABDF03 0x108 0x39AB660A Please use no more than 4 move instructions to change their value to the following. Address Value 0X100 0x4A 0x104 0x37ABDF03 0x108 0X123456FE In the move instructions you used, you can only use the following addressing mode: E a , (E a ),(E b , E i ), (, E i , s), (E b , E i , s). Solution: movl %ecx, (%edx, %ebx, 2) movl (%edx, %ebx), %eax movsbl %cl, %ebx movb %ah, %cl Register Value %eax 0X07 %ebx 0X04 %ecx 0X123456FE %edx 0x100 Register Value %eax 0x37ABDF03 %ebx 0XFFFFFFFE %ecx 0X123456DF %edx 0x100...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern