# Z80

Assembler code

```
ROM:02A0
ROM:02A0 ; =============== S U B R O U T I N E =======================================
ROM:02A0
ROM:02A0
ROM:02A0 sub_2A0:
ROM:02A0                 ld      a, 7Fh
ROM:02A2                 in      a, (0FEh)
ROM:02A4                 rra
ROM:02A5                 jr      c, loc_2B2
ROM:02A7                 ld      a, 7Fh
ROM:02A9                 in      a, (0FEh)
ROM:02AB                 rra
ROM:02AC                 jr      c, loc_2B2
ROM:02AE                 ld      a, 14h
ROM:02B0                 scf
ROM:02B1                 ret
ROM:02B2 ; ---------------------------------------------------------------------------
ROM:02B2
ROM:02B2 loc_2B2:                                ; CODE XREF: sub_2A0+5↑j
ROM:02B2                                         ; sub_2A0+C↑j
ROM:02B2                 or      a
ROM:02B3                 ret
ROM:02B3 ; End of function sub_2A0
ROM:02B3
ROM:02B3 ; ---------------------------------------------------------------------------
ROM:02B4                 db    0
ROM:02B5                 db    0
ROM:02B6                 db    0
ROM:02B7                 db    0
ROM:02B8                 db    0
ROM:02B9                 db    0
ROM:02BA                 db    0
ROM:02BB                 db    0
ROM:02BC                 db    0
ROM:02BD                 db    0
```


---

# 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://docs.hex-rays.com/ida-9.2/user-guide/disassembler/disassembly-gallery/z80.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.
