# PIC

Assembler code

```
CODE:0004
CODE:0004 ; =============== S U B R O U T I N E =======================================
CODE:0004
CODE:0004 ; Interrupt Vector
CODE:0004
CODE:0004                 ; public ISR
CODE:0004 ISR:
CODE:0004                 movlp   0
CODE:0005                 btfss   BANK0:INTCON, T0IF
CODE:0006                  b       loc_CODE_8
CODE:0007                 b       loc_CODE_9
CODE:0008 ; ---------------------------------------------------------------------------
CODE:0008
CODE:0008 loc_CODE_8:                             ; CODE XREF: ISR+2↑j
CODE:0008                 b       loc_CODE_1A
CODE:0009 ; ---------------------------------------------------------------------------
CODE:0009
CODE:0009 loc_CODE_9:                             ; CODE XREF: ISR+3↑j
CODE:0009                 movlb   0
CODE:000A                 movfw   byte_DATA_24
CODE:000B                 xorlw   3
CODE:000C                 bnz     loc_CODE_F
CODE:000E                 b       loc_CODE_10
CODE:000F ; ---------------------------------------------------------------------------
CODE:000F
CODE:000F loc_CODE_F:                             ; CODE XREF: ISR+8↑j
CODE:000F                 b       loc_CODE_14
CODE:0010 ; ---------------------------------------------------------------------------
CODE:0010
CODE:0010 loc_CODE_10:                            ; CODE XREF: ISR+A↑j
CODE:0010                 movlp   5
CODE:0011 ; assume pclath = 5
CODE:0011                 call    sub_CODE_516
CODE:0012                 movlp   0
CODE:0013 ; assume pclath = 0
CODE:0013                 b       loc_CODE_14
```


---

# 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/8.5/user-guide/disassembler/disassembly-gallery/pic.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.
