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 x: and, or not, xor.
Using only the following instructions:
and, or xor
Implement the following logic:
if x is even then
y
else
y
where:
x rdi
y rax
We will now set the following in preparation for your code:
rdi xdcac
Please give me your assembly in bytes up to x bytes:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
