summaryrefslogtreecommitdiff
path: root/twasm/README.md
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-03-08 10:56:20 +0100
committerandromeda <andromeda@lenovo>2026-03-08 10:56:20 +0100
commit0d66e779765da9888da491c5ac85c4783df45b65 (patch)
tree24c0c8d122f926541f4841ad922ba70b8e40ca8f /twasm/README.md
parent63e3a1ea7eecef3ea6a212f3855cb26ba33fc621 (diff)
get tokenising working a bit :p also some fixes and semantics
Diffstat (limited to 'twasm/README.md')
-rw-r--r--twasm/README.md13
1 files changed, 6 insertions, 7 deletions
diff --git a/twasm/README.md b/twasm/README.md
index 91a7eb3..de73e90 100644
--- a/twasm/README.md
+++ b/twasm/README.md
@@ -21,8 +21,6 @@ I want to compile Bootler and Twasm with the Twasm assembler
| stack (rsp) |
+------------------------+
| input |
-+------------------------+ <- this is lined up to a sector
-| | <- and this is less than a sector
+------------------------+
| assembler |
+------ 0x00010000 ------+
@@ -37,11 +35,11 @@ each word represents a token on the token table.
each token gets loaded into the token table with the following form:
```
-+----------+-----------------------+
-| 31 16 | 15 0 |
-+----------+-----------------------+
-| reserved | token id |
-+----------+-----------------------+
++----------+----------+
+| 31 16 | 15 0 |
++----------+----------+
+| reserved | token id |
++----------+----------+
```
### token IDs
@@ -152,4 +150,5 @@ supported tokens are listed below
| - | 0x0063 | |
| * | 0x0064 | |
| / | 0x0065 | |
+| | 0xFEXX | token terminator byte as token, where `XX` is the byte |
| | 0xFFFF | unrecognised token |