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
Provided Methods
fn process(&mut self, vm: &mut VM) -> Result<()>
Hook into the state after each cycle
fn prepare(&mut self, vm: &mut VM) -> Result<()>
Prepare the state of the VM
fn finish(&mut self, vm: &mut VM) -> Result<()>
Make finalizing manipulations to the state before the VM's shutdown
fn system_call(&mut self, vm: &mut VM, signal: UInt) -> Result<()>
React to the SysCall
instruction and process the given signal