pub trait Node {
// Provided methods
fn step(&mut self, io: &mut IoBusView<'_>) { ... }
fn sync(&mut self, io: &mut IoBusView<'_>) { ... }
fn is_stalled(&self) -> bool { ... }
}Expand description
Interface for nodes in a TIS-100 system.
Provided Methods§
Sourcefn sync(&mut self, io: &mut IoBusView<'_>)
fn sync(&mut self, io: &mut IoBusView<'_>)
Synchronize reads and writes after the last instruction cycle.
Sourcefn is_stalled(&self) -> bool
fn is_stalled(&self) -> bool
Determine if a node is executing assembly code or if it is stalled on a read or write.
For all nodes except nodes which can execute assembly, this should always be true.