Question: Using only the following instructions: and, or , xor Implement the following logic: if x is even then y = 1 else y = 0
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
