Module budvm::ir::asm

source ·
Expand description

Bud Assembly Language

fn name @a @b @c
// (a * b) * c
mul @a @b $tmp
mul $tmp @c $

fn __init
// init function called when module is loaded
// name(1, 2, 3) -> 6
push 1
push 2
push 3
call name 3

Structs

Enums