# M740

Assembler Code

```
seg000:81D8
seg000:81D8 ; =============== S U B R O U T I N E =======================================
seg000:81D8
seg000:81D8
seg000:81D8 sub_81D8:                               ; CODE XREF: seg000:8F8C↓p
seg000:81D8                 lda     3, X
seg000:81DA                 pha
seg000:81DB                 jsr     sub_815F
seg000:81DE                 jsr     sub_818C
seg000:81E1                 lda     $FB, X
seg000:81E3                 sta     0, X
seg000:81E5                 lda     $FC, X
seg000:81E7                 sta     1, X
seg000:81E9                 pla
seg000:81EA                 bpl     locret_81FD
seg000:81EC                 lda     0, X
seg000:81EE                 eor     #$FF
seg000:81F0                 clc
seg000:81F1                 adc     #1
seg000:81F3                 sta     0, X
seg000:81F5                 lda     1, X
seg000:81F7                 eor     #$FF
seg000:81F9                 adc     #0
seg000:81FB                 sta     1, X
seg000:81FD
seg000:81FD locret_81FD:                            ; CODE XREF: sub_81D8+12↑j
seg000:81FD                 rts
seg000:81FD ; End of function sub_81D8
seg000:81FD
seg000:81FE
seg000:81FE ; =============== S U B R O U T I N E =======================================
seg000:81FE
seg000:81FE
seg000:81FE sub_81FE:                               ; CODE XREF: seg000:8C2B↓p
seg000:81FE                                         ; sub_9D0C+1↓j
seg000:81FE                 lda     3, X
```


---

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