[][src]Function zeerust::cpu::opcodes::opcode

pub fn opcode(code: [u8; 4]) -> (Op, usize)

Parse a series of bytes into an opcode. Opcodes can be up to four bytes, but are often less. The usize from the tuple is the number of bytes consumed. The program counter should be incremented by this much