> For the complete documentation index, see [llms.txt](https://docs.hex-rays.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hex-rays.com/9.0/user-guide/disassembler/disassembly-gallery/pic-12xx.md).

# PIC 12xx

Assembler code

```
CODE:0011 ; assume bank = 0
CODE:0011
CODE:0011 ; =============== S U B R O U T I N E =======================================
CODE:0011
CODE:0011
CODE:0011 sub_CODE_11:                            ; CODE XREF: RESET+189↓p
CODE:0011                 comf    BANK0:R9, w
CODE:0012                 xorwf   BANK0:R10, w
CODE:0013                 xorwf   BANK0:R11, w
CODE:0014                 movwf   BANK0:R15
CODE:0015                 call    sub_CODE_4
CODE:0016                 movwf   BANK0:R6
CODE:0017                 btfsc   BANK0:R5, 1
CODE:0018                  swapf   BANK0:R6, w
CODE:0019                 xorwf   BANK0:R15, f
CODE:001A                 comf    BANK0:R12, w
CODE:001B                 xorwf   BANK0:R13, w
CODE:001C                 xorwf   BANK0:R14, w
CODE:001D                 movwf   BANK0:R16
CODE:001E                 call    sub_CODE_5
CODE:001F                 movwf   BANK0:R6
CODE:0020                 btfsc   BANK0:R5, 0
CODE:0021                  swapf   BANK0:R6, w
CODE:0022                 xorwf   BANK0:R16, f
CODE:0023                 retlw   0
CODE:0023 ; End of function sub_CODE_11
CODE:0023
CODE:0024
CODE:0024 ; =============== S U B R O U T I N E =======================================
CODE:0024
CODE:0024
CODE:0024 sub_CODE_24:                            ; CODE XREF: RESET+C2↓p
CODE:0024                                         ; RESET+D7↓p ...
CODE:0024                 comf    BANK0:R9, w
CODE:0025                 xorlw   17

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hex-rays.com/9.0/user-guide/disassembler/disassembly-gallery/pic-12xx.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
