Question: In this level you will be working with bit logic and operations. This will involve heavy use of directly interacting with bits stored in a

In this level you will be working with bit logic and operations. This will involve heavy use of
directly interacting with bits stored in a register or memory location. You will also likely
need to make use of the logic instructions in x86: and, or, not, xor.
Using only the following instructions:
and, or, xor
Implement the following logic:
if x is even then
y =1
else
y =0
where:
x = rdi
y = rax
We will now set the following in preparation for your code:
rdi =0x203d2cac
Please give me your assembly in bytes (up to 0x1000 bytes):

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 Databases Questions!