Document string literals

simon987 2020-07-30 18:46:24 -04:00
parent ca6420adc4
commit b50ab7a9ad

@ -92,6 +92,27 @@ mynumber: DW 0x0000
;; use [] to reference the contents of the memory
```
### String literals
```asm
my_str: DW "Hello"
.text
MOV A, [my_str] ; Value of A is now 'H'
```
### Character literals
// NOT IMPLEMENTED
You can combine any type of literal values in a single line, for example:
```asm
DW "some string", 123, "another string", 0
```
## DUP
The `DUP` directive (Duplicate) is used as operand for the `DW` directive. The syntax:
```s
@ -104,11 +125,6 @@ It can only be used in combination with the `DW` directive
## Sections
// TODO
## Strings
// TODO
## Characters
// NOT IMPLEMENTED
## ORG