Assume the following values are stored at the indicated memory addresses and registers:
Address | Value | Register | Value |
---|---|---|---|
0x100 | 0xFF | %eax | 0x100 |
0x104 | 0xAB | %ecx | 0x1 |
0x108 | 0x13 | %edx | 0x3 |
0x10C | 0x11 |
Fill in the following table showing the effects of the following instructions, both in terms of the register or memory location that will be updated and the resulting value.
Instruction | Destination | Value |
---|---|---|
addl %ecx,(%eax) | ||
subl %edx,4(%eax) | ||
imull $16,(%eax,%edx,4) | ||
incl 8(%eax) | ||
decl %ecx | ||
subl %edx,%eax |