# `movrs`

[x86-64 Documentation](https://asm-editor.specy.app/documentation/x86.md) › [Instructions](https://asm-editor.specy.app/documentation/x86/instruction.md)

Web page: https://asm-editor.specy.app/documentation/x86/instruction/movrs

**Move with read-shared hint**

Category: Data movement

Loads a register from memory using the MOVRS encoding, which hints that the data is read-shared.

Processors with the MOVRS extension

## Flags

| Flag | Effect |
| --- | --- |
| CF | not changed |
| PF | not changed |
| AF | not changed |
| ZF | not changed |
| SF | not changed |
| DF | not changed |
| OF | not changed |

## Forms

- `movrs reg, mem` (8, 16, 32, 64)
  - `movrs reg8, mem8`
  - `movrs reg16, mem16`
  - `movrs reg32, mem32`
  - `movrs reg64, mem64`

## Operands

- `reg`: A general-purpose register matching the operation’s size, for example `al`, `ax`, `eax` or `rax`.
- `mem`: A memory location addressed with square brackets, for example `[rbx+8]` or `[label]`.

## Example

```x86
global _start

section .data
value: dq 7

section .text
_start:
        mov rax, 12
        mov rbx, 5
        mov rcx, 3
        mov rsi, 9

        movrs rax, [value]

        mov rax, 60         ; syscall 60: exit
        xor rdi, rdi
        syscall
```
