Trait melon::System [] [src]

pub trait System: Send {
    const ID: &'static str;
    fn process(&mut self, vm: &mut VM) -> Result<()> { ... }
fn prepare(&mut self, vm: &mut VM) -> Result<()> { ... }
fn finish(&mut self, vm: &mut VM) -> Result<()> { ... }
fn system_call(&mut self, vm: &mut VM, signal: UInt) -> Result<()> { ... } }

An interface to communicate with the VM

Associated Constants

A unique ID to identify the System

Provided Methods

Hook into the state after each cycle

Prepare the state of the VM

Make finalizing manipulations to the state before the VM's shutdown

React to the SysCall instruction and process the given signal

Implementors