# print

### Function

> print

### Syntax

> print( Expression );

### Parameters

**\[Expression]**

A [MASM-like expression](https://docs.hyperdbg.org/commands/scripting-language/assumptions-and-evaluations) to evaluate.

### Description

Evaluates and prints a MASM expression.

### Examples

`print(@rcx);`

Print **rcx** register.

`print(dq(@rcx));`

Print data as an 8-byte hex, pointed by **rcx** register.

`print($proc+@rdx);`

Print value pointed by `$proc+@rdx` which **$proc** is equivalent to current `_EPROCESS` added to the **rdx** register.

{% hint style="success" %}
You can see more examples [here](https://docs.hyperdbg.org/commands/scripting-language/examples/view-system-state).
{% endhint %}

### Remarks

You should consider avoiding ["unsafe" behavior](https://docs.hyperdbg.org/tips-and-tricks/considerations/the-unsafe-behavior) in your expressions.

### Related

[printf](https://docs.hyperdbg.org/commands/scripting-language/functions/exports/printf)


---

# 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/exports/print.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.
