.
This commit is contained in:
12
doc/OPCODES
12
doc/OPCODES
@@ -79,22 +79,22 @@ Bytecode format
|
||||
|
||||
The bytecode file is composed of the following sections:
|
||||
|
||||
* [0x0] 16-byte header
|
||||
* 16-byte header
|
||||
[0:3]: Magic
|
||||
[4]: VM format
|
||||
* [0x1] Index: pointers to each one of the sections, up to 8
|
||||
* Index: pointers to each one of the sections, up to 8
|
||||
Each pointer: 4 bytes
|
||||
* [0x2] Constants: all constants (such as strings) used in the code
|
||||
* [0x0] Constants: all constants (such as strings) used in the code
|
||||
* Table of 4-byte constant indexes with pointer to constant
|
||||
* Raw constant data
|
||||
* [0x3] Functions: Pointer to functions within the code
|
||||
* [0x1] Functions: Pointer to functions within the code
|
||||
[0:3]: function pointer
|
||||
[4:5]: number of parameters
|
||||
[6:7]: number of local variables
|
||||
* [0x4] Code: executable code
|
||||
* [0x2] Code: executable code
|
||||
[1-byte]: operation
|
||||
[variable]: operand (see value encoding below)
|
||||
* [0x5] Debugging info
|
||||
* [0x3] Debugging info
|
||||
???
|
||||
|
||||
The max file size is 2 Gb.
|
||||
|
||||
Reference in New Issue
Block a user