aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-17 02:57:08 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit81c5f8e750fcda6a2451fb54604130431434f88f (patch)
tree944fa06c781d57b1db90e9153080f411a1c34a55 /doc
parent20662a1d203ffb9e05d6694347fd258115b41d0a (diff)
Implement more instructions, implement function parameters and arguments
Diffstat (limited to 'doc')
-rw-r--r--doc/Documentation.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/Documentation.md b/doc/Documentation.md
index 602d0e1..3f9bd1a 100644
--- a/doc/Documentation.md
+++ b/doc/Documentation.md
@@ -25,6 +25,9 @@ in the next step. The last step is not done in parallel because the last step is
and writing it to a file, which is an IO bottlenecked operation and it won't benefit from multithreading
and may even lose performance because of it.
+# Bytecode
+The layout of the full bytecode is: Header (Intermediates Strings Functions Instructions)*
+
# Bytecode header
## Header layout
|Type|Field |Description |
@@ -63,6 +66,12 @@ The versions in the header only changes for every release, not every change.
|u16 |Size|The size of the string, in bytes. |
|u8* |Data|The data of the string, where the size is defined by @Size. Strings are null-terminated.|
+# Bytecode functions
+## Internal functions layout
+|Type|Field |Description |
+|----|-------------------|---------------------------------|
+|u16 |Number of functions|The number of internal functions.|
+
# Bytecode instructions
## Instructions layout
|Type |Field |Description |