design token work

This commit is contained in:
andromeda
2026-03-07 15:43:41 +01:00
parent 30a7b5cb34
commit 7df3d25727

View File

@@ -16,8 +16,7 @@ I want to compile Bootler and Twasm with the Twasm assembler
+------ 0x00070000 ------+
| token table |
+------ 0x00060000 ------+
| |
| |
| stack (rsp) |
+------------------------+
| input |
+------------------------+ this is lined up to a sector
@@ -30,3 +29,23 @@ I want to compile Bootler and Twasm with the Twasm assembler
```
each word represents a token on the token table.
#### token table (TT)
each token gets loaded into the token table with the following form:
```
+----------+-----------------------+
| 31 16 | 15 0 |
+----------+-----------------------+
| reserved | token id |
+----------+-----------------------+
```
### token IDs
supported tokens are listed below
| token | id | notes |
|-------|--------|-|
| | 0xFFFF | unrecognised token |