This preview shows page 1. Sign up to view the full content.
Unformatted text preview: addl , subl , andl , and xorl . Suppose you were converting an X86 program to Y86 and found that it used the notl (bitwise complement) instruction. How can you accomplish the effect of this instruction using only Y86 instructions? To make this speciﬁc, suppose that the instruction that you wanted to replace was: notl %eax Give a sequence of Y86 instructions that have the identical effect. Feel free to use the %ecx or %edx registers if you need another register. 4. Repeat question 3 above but with the instruction orl . Speciﬁcally, accomplish the same effect as: orl %ebx, %eax 1...
View Full Document
This note was uploaded on 10/09/2011 for the course CPSC 344 taught by Professor Karen during the Fall '10 term at The University of British Columbia.
- Fall '10