# 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: 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/pic-12xx.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.
