Skip to content

Syntax Reference

🚧 Under Construction

This page is actively being written. Content may be incomplete or change.

Runestaff is a human-friendly assembler and dissassembler that targets the JVM. It reads .rns source files and produces Java bytecode (.class files).

This section covers the syntax of the Runestaff assembly language.

PageDescription
Runestaff TypesPrimitive types, reference types, arrays, and JVM type descriptors
DirectivesAssembler directives — .class, .method, .field, .end, etc.
InstructionsJVM instruction mnemonics supported by Runestaff

A Runestaff source file is made up of a class definition followed by member definition (fields and methods).

TODO

Single-line comments start with a semicolon (;):

; This is a comment
ldc 42 ; inline comment