# disassemble\_len

### Function

> disassemble\_len

### Syntax

> disassemble\_len( Expression );

### Parameters

**\[Expression (Address)]**

A [MASM-like expression](https://docs.hyperdbg.org/commands/scripting-language/assumptions-and-evaluations) to evaluate which is the address of the target location to return instruction length.

### Description

Returns the **length** of the instruction (Length Disassembler Engine) at the target `Address` using a **64-bit assembler**.

### Return value

If the address is valid, returns the length (byte) of one instruction at the target address; otherwise, it returns `0`.

### Examples

```clike
InstrLength = disassemble_len(@rip + 10);
```

Adds 0x10 to the **rip** register and returns the instruction length result into the `InstrLength` variable.

### Remarks

This function visits the memory as a 64-bit assembler. You can use [disassemble\_len32](https://docs.hyperdbg.org/commands/scripting-language/functions/diassembler/disassemble_len32) for the 32-bit version of this function.

### Related

[disassemble\_len32](https://docs.hyperdbg.org/commands/scripting-language/functions/diassembler/disassemble_len32)


---

# 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.hyperdbg.org/commands/scripting-language/functions/diassembler/disassemble_len.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.
