]> Witch of Git - jade-mouse/blob - toolchain/src/inst/decode.rs
Add more mid-byte underscores to the ISA spec
[jade-mouse] / toolchain / src / inst / decode.rs
1 use crate::inst::Inst;
2 use std::io::{self, Read};
3
4 pub trait Decode {
5 fn decode(code: &mut impl Read) -> io::Result<Inst>;
6 }
7
8 impl Decode for Inst {
9 fn decode(code: &mut impl Read) -> io::Result<Inst> {
10 Ok(Inst::Halt)
11 }
12 }