Viua VM assembly syntax

Directives

Directives are assembler-specific commands that disappear before runtime. They are used for delimiting functions and blocks, naming registers, etc.

.block:

Sets up a block of code. Must end with .end.

.bsignature:

Signature of a block that should be trated as defined by the assembler.

.closure:

Create a closure from a function.

.function:

Defines a function.

.info:

Add meta information to compiled module.

.iota:

Sets next value of 'iota' keyword.

.import:

Import a module during assembling (static linking).

.mark:

Set a marker that can be jumped to.

.name:

Name a register. Names are present only during assembling and disappear after the source code is converted to bytecode.

.signature:

Signature of a function that should be trated as defined by the assembler.