Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Opcodes in rust
#[repr(u8)]
pub enum Opcode {
Null,
First,
}
fn main() {
println!("0b{:08b}", Opcode::First as u8);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment