previous | start | next

Problem 3.6

Suppose register %eax holds value x and %ecx holds value y. Fill in the table below with formulas indicating the value that will be stored in register %edx for each of the following assembly code instructions.

Expression Result
leal 6(%eax), %edx  
leal (%eax,%ecx), %edx  
leal (%eax,%ecx,4), %edx  
leal 7(%eax,%eax,8), %edx  
leal 0xA(,$ecx,4), %edx  
leal 9(%eax,%ecx,2), %edx  


previous | start | next