Enum little::Instruction
[−]
[src]
pub enum Instruction {
Output {
location: Mem,
},
Property {
name: Mem,
},
Push {
location: Mem,
},
Pop {
times: u16,
},
Jump {
pc: u16,
},
CondJump {
pc: u16,
location: Mem,
test: Cond,
},
Call {
call: Call,
argc: u8,
push_result_to_stack: bool,
},
Load {
binding: Binding,
location: Mem,
},
Interupt,
}Executable template instruction.
Variants
Output | Output specified Fields
| ||||||
Property | Replace a value in Fields
| ||||||
Push | Push data from Fields
| ||||||
Pop | Pop specified number of stack items. Fields
| ||||||
Jump | Jump to instruction. Fields
| ||||||
CondJump | Jump to instruction based on Fields
| ||||||
Call | Call function with specified amount of stack items and store result to stack if bool = true. Fields
| ||||||
Load | Copy value from Fields
| ||||||
Interupt | Interupt execution, it is up to the user to know what to do with the stack at current state. |