summaryrefslogtreecommitdiff
path: root/twasm/README.md
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-03-10 16:32:06 +0100
committerandromeda <andromeda@lenovo>2026-03-10 16:32:06 +0100
commit08c39a2bd89e6ef9ebc4b249368ab1282ab4f5fc (patch)
treee753428df7824418273963825f6b7f4c66ea23b9 /twasm/README.md
parenta972f38bb636fdcb41a2bb7c856f7f546076b397 (diff)
add get_opcode and its test, fix a couple bugs + semantics things
Diffstat (limited to 'twasm/README.md')
-rw-r--r--twasm/README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/twasm/README.md b/twasm/README.md
index ce6beec..d6d2ec5 100644
--- a/twasm/README.md
+++ b/twasm/README.md
@@ -144,6 +144,20 @@ type metadata for the different types is as follows:
11b ; 64 bit
```
+#### `opcodes.by_id`
+
+entries are as follows:
+
+```
++----------+--------+----------+
+| 31 24 | 23 16 | 15 0 |
++----------+--------+----------+
+| reserved | opcode | token ID |
++----------+--------+----------+
+```
+
+note the lack of support for multiple-byte opcodes or multiple opcodes for one token ID; these features will likely be added at some point after the parser accumulates too much jank.
+
### token IDs
supported tokens are listed below