Function intel_8080_emu::opcode::read_opcode[][src]

pub fn read_opcode(bytes: &[u8]) -> Result<OpCode, UnexpectedEndOfInput>

Read a slice of bytes and returns an opcode, possibly with its data.

Unknown opcodes are interpreted as NOP. The parsing might fail if the slice is too short.