# Instructions

1. `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

3. ```
   SETNE/SETNZ register
   ```

It sets the value of register to 1 if zero flag is 0.

4. `mov rax, rbx`

Move rbx value to rax.

5. `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.&#x20;

**ZF (Zero Flag)**:\
Set to 1 if (EDI & EDI) == 0 (i.e. if EDI == 0); cleared to 0 otherwise.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://newrouge.gitbook.io/roguebook1/group/assembly/instructions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
