# Assemble

## Description

This command allows you to assemble instructions. Currently, only the IBM PC processors provide an assembler, nonetheless, plugin writers can extend or totally replace the built-in assembler by writing their own.

The assembler requires to enclose all memory references into square brackets. For example:

```
        mov ax, [counter]
```

Also, the keyword 'offset' must not be used. Instead of

```
        mov eax, offset name
```

you must write

```
        mov eax, name
```

See also [How to Enter a Number](https://github.com/HexRaysSA/ida-docs/blob/9.3/user-guide/disassembler/navigation/how-to-enter-a-number.md).


---

# 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-actions/assemble.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.
