emul8 0.1.2

A simple rust-based toolchain to interoperate and emulate the CHIP-8 architecture
Documentation
pub struct Display {
    pub screen: [bool; 64 * 32],
}

impl Default for Display {
    fn default() -> Self {
        Display {
            screen: [false; 64 * 32],
        }
    }
}

impl std::fmt::Display for Display {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        for y in 0..32 {
            for x in 0..64 {
                if self.screen[64 * y + x] {
                    write!(f, "*")?;
                } else {
                    write!(f, " ")?;
                }

                if x != 63 {
                    write!(f, " ")?;
                } else {
                    writeln!(f)?;
                }
            }
        }

        Ok(())
    }
}