Exemplo n.º 1
0
        public static void DumpUnknownBytecodes(StreamWriter writer)
        {
            foreach (byte b in _unknownBytecodes.Keys)
            {
                writer.WriteLine(b.ToString("X2"));
                var occurrences = _unknownBytecodes[b];
                foreach (var occurrence in occurrences)
                {
                    var function = occurrence.Function;
                    writer.Write("  ");
                    WriteFunctionName(writer, function);

                    var bytes = occurrence.SubsequentBytes;
                    int skip  = 0;
                    if (b == 0x0E)
                    {
                        skip = DumpNextBytecodes(writer, function, bytes, 4, 1);
                    }
                    writer.WriteLine("      " + BytecodeReader.DumpBytes(bytes, skip, 32));
                }
            }
        }