Question: In this level you will be working with registers. You will be asked to modify or read from registers. We will now set some values
In this level you will be working with registers. You will be asked to modify
or read from registers.
We will now set some values in memory dynamically before each run. On each run
the values will change. This means you will need to do some type of formulaic
operation with registers. We will tell you which registers are set beforehand
and where you should put the result. In most cases, its rax.
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
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
