Add execution to VM via file, starting to iron out bugs
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -6,6 +6,15 @@ macro_rules! instructions {
|
||||
$(
|
||||
pub const $variant: InstOp = $value;
|
||||
)*
|
||||
|
||||
pub fn inst_name(op: InstOp) -> Option<&'static str> {
|
||||
match op {
|
||||
$(
|
||||
$value => Some(stringify!($variant)),
|
||||
)*
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
pub type InstOp = u16;
|
||||
|
||||
Reference in New Issue
Block a user