Add string literals

This commit is contained in:
2020-05-17 20:30:57 +02:00
parent fc2870ca74
commit e1008b43a6
11 changed files with 152 additions and 48 deletions

View File

@@ -69,6 +69,7 @@ The following characters are used as identifiers:
- semicolon (`;`) for statement termination
- hash (`#`) for comments
- square brackets (`[` and `]`) for addressing memory
- double quotes (`"`) for string values
## Memory Model
@@ -90,6 +91,8 @@ There is currently no strict checking, so be careful.
- `DECLARE` declares the first label argument to equal the second, immediate
value, argument and is used to declare a constant for the virtual machine.
- `STRING` puts the string value declared as the second argument in the memory
memory location of the first immediate argument
### Operands