Skip to content

Commit

Permalink
Fix incorrect example instruction in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed May 24, 2024
1 parent 9386c93 commit e22f8c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/ReferenceManual/ReferenceManual.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Applies to versions: `3.2.0`

Last revised: 2024-04-08
Last revised: 2024-05-24

## Introduction

Expand Down Expand Up @@ -239,7 +239,7 @@ Consider the following example:
```text
:AREA_1
WCC '\n'
MVQ rg0, :AREA_1 ; Move whatever is stored at :AREA_1 in memory to rg0
MVB rg0, :AREA_1 ; Move the byte stored at :AREA_1 in memory to rg0
```

> Here `:AREA_1` will point to the **first byte** (i.e. the start of the **opcode**) of the **directly subsequent assemble-able line** — in this case `WCC`. The second operand to `MVQ` will become the address that `WCC` is stored at in memory, `0` if it is the first instruction in the file. As `MVQ` is the instruction to move to a destination from a source, `rg0` will contain `0xCD` after the instruction executes (`0xCD` being the opcode for `WCC <Literal>`).
Expand Down

0 comments on commit e22f8c2

Please sign in to comment.