strawberryvm 0.2.0

A fantasy virtual machine with limits on resources.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Simple macro to write instructions into
/// the machines memory. Usually used in
/// tests or very very simple programs
#[macro_export]
macro_rules! write_memory {
    ($vm:expr, $($addr:expr => $val:expr),+) => {
        $(
            $vm.memory.write($addr, $val)?;
        )+
    };
  }