<commit_before># Input

When using x64dbg you can often use various things as input.

## Commands

Commands have the following format:

```
command arg1, arg2, argN
```

## Variables

Variables optionally start with a `$` and can only store one DWORD (QWORD on x64).

## Registers

All registers (of all sizes) can be used as variables.

### Remarks

- The variable names for most registers are the same as the names for them, except for the following registers: 
 - **x87 Control Word Flag**: The flags for this register is named like this: `_x87CW_UM`
- In addition to the registers in the architecture, x64dbg provides the following registers: `CAX` , `CBX` , `CCX` , `CDX` , `CSP` , `CBP` , `CSI` , `CDI` , `CIP`. These registers are mapped to 32-bit registers on 32-bit platform, and to 64-bit registers on 64-bit platform. For example, `CIP` is `EIP` on 32-bit platform, and is `RIP` on 64-bit platform. This feature is intended to support architecture-independent code.

## Memory locations

You can read/write from/to a memory location by using one of the following expressions:
- `[addr]` read a DWORD/QWORD from `addr`.
- `n:[addr]` read n bytes from `addr`.
- `seg:[addr]` read a DWORD/QWORD from a segment at `addr`.
- `byte:[addr]` read a BYTE from `addr`.
- `word:[addr]` read a WORD from `addr`.
- `dword:[addr]` read a DWORD from `addr`.
- `qword:[addr]` read a QWORD from `addr` (x64 only).

### Remarks

- `n` is the amount of bytes to read, this can be anything smaller than 4 on x32 and smaller than 8 on x64 when specified, otherwise there will be an error.
- `seg` can be `gs`, `es`, `cs`, `fs`, `ds`, `ss`. Only `fs` and `gs` have an effect.

## Flags<commit_msg>Clarify 64-bit register usage<commit_after># Input

When using x64dbg you can often use various things as input.

## Commands

Commands have the following format:

```
command arg1, arg2, argN
```

## Variables

Variables optionally start with a `$` and can only store one DWORD (QWORD on x64).

## Registers

All registers of all sizes up to 32-bit (eg: RAX, EAX, AL) can be used as variables.

XMM, YMM, ZMM or any other 64-bit registers may not, but they may be logged via the [String Formatting](https://help.x64dbg.com/en/latest/introduction/Formatting.html) `f` type.

### Remarks

- The variable names for most registers are the same as the names for them, except for the following registers: 
 - **x87 Control Word Flag**: The flags for this register is named like this: `_x87CW_UM`
- In addition to the registers in the architecture, x64dbg provides the following registers: `CAX` , `CBX` , `CCX` , `CDX` , `CSP` , `CBP` , `CSI` , `CDI` , `CIP`. These registers are mapped to 32-bit registers on 32-bit platform, and to 64-bit registers on 64-bit platform. For example, `CIP` is `EIP` on 32-bit platform, and is `RIP` on 64-bit platform. This feature is intended to support architecture-independent code.

## Memory locations

You can read/write from/to a memory location by using one of the following expressions:
- `[addr]` read a DWORD/QWORD from `addr`.
- `n:[addr]` read n bytes from `addr`.
- `seg:[addr]` read a DWORD/QWORD from a segment at `addr`.
- `byte:[addr]` read a BYTE from `addr`.
- `word:[addr]` read a WORD from `addr`.
- `dword:[addr]` read a DWORD from `addr`.
- `qword:[addr]` read a QWORD from `addr` (x64 only).

### Remarks

- `n` is the amount of bytes to read, this can be anything smaller than 4 on x32 and smaller than 8 on x64 when specified, otherwise there will be an error.
- `seg` can be `gs`, `es`, `cs`, `fs`, `ds`, `ss`. Only `fs` and `gs` have an effect.

## Flags
{'fraction_non_alphanumeric': 0.11898804559355018, 'fraction_numerical': 0.020016680567139282, 'mean_word_length': 3.9287671232876713, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4080925', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1129, 'n_words': 542}