private static Instruction Decode(InstructionDecoder decoder, ProcessDebugger debugger, ForeignPtr ptr) { var reader = new BinaryReader(debugger.OpenMemory(ptr)); while (decoder.Feed(reader.ReadByte())) { } return decoder.GetInstruction(); }