> 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.0sp1/user-guide/disassembler/disassembly-gallery/i860.md).

# i860

Assembler code

```
.text:000011C0
.text:000011C0 // =============== S U B R O U T I N E =======================================
.text:000011C0
.text:000011C0
.text:000011C0                 // public _main
.text:000011C0 _main:                                  // CODE XREF: __main+120↓p
.text:000011C0                 addu            -0x20, r2, r2
.text:000011C4                 st.l            0x11(r2), r3
.text:000011C8                 addu            0x10, r2, r3
.text:000011CC                 st.l            5(r3), r1
.text:000011D0                 orh             0, r0, r31
.text:000011D4                 call            _printf
.text:000011D8                 or              0xA000, r31, r16
.text:000011DC                 adds            0x10, r3, r31
.text:000011E0                 ld.l            4(r3), r1
.text:000011E4                 ld.l            0(r3), r3
.text:000011E8                 bri             r1
.text:000011EC                 shl             r0, r31, r2
.text:000011EC // End of function _main
.text:000011EC
.text:000011F0 // ---------------------------------------------------------------------------
.text:000011F0                 shl             r0, r0, r0
.text:000011F4                 shl             r0, r0, r0
.text:000011F8                 shl             r0, r0, r0
.text:000011FC                 shl             r0, r0, r0
.text:00001200
.text:00001200 // =============== S U B R O U T I N E =======================================
.text:00001200
.text:00001200
.text:00001200                 // public _fclose
.text:00001200 _fclose:                                // CODE XREF: ___cleanup+68↓p
.text:00001200                 addu            -0x50, r2, r2
.text:00001204                 st.l            1(r2), r1
.text:00001208                 st.l            0x39(r2), r4
.text:0000120C                 st.l            0x3D(r2), r5
```


---

# 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.0sp1/user-guide/disassembler/disassembly-gallery/i860.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.
