Instructions
je <Address>
This will jump to address if ZF is set to 1, otherwise if ZF(zero flag) is zero it won't make the jump to that address.
2.jne <address>
Is exact opp of earlier
SETNE/SETNZ register
It sets the value of register to 1 if zero flag is 0.
mov rax, rbx
Move rbx value to rax.
test edi,edi
does a bitwise AND of the EDI register with itself, and updates the CPU flags based on the result—but it does not store any result back into EDI.
ZF (Zero Flag): Set to 1 if (EDI & EDI) == 0 (i.e. if EDI == 0); cleared to 0 otherwise.
Last updated