Document ORG instruction

simon987 2020-07-30 18:33:54 -04:00
parent 33011133b4
commit 31d35b15dc

@ -111,4 +111,16 @@ It can only be used in combination with the `DW` directive
// NOT IMPLEMENTED
## ORG
// TODO
The `ORG` directive lets you change where your code is copied during assembly. By default, assembled code is copied at `0x200`
Example:
```asm
ORG 0x8000
my_var: DW 0x1234
.text
MOV A, [my_var] ; Value of A is now 0x8000
brk
```