示例#1
0
        /// <summary>
        ///     Gets the register.
        /// </summary>
        /// <param name="reg">The reg.</param>
        /// <returns>System.Object.</returns>
        public object GetRegister(uint reg)
        {
            Registers.GetNumberRegisters(out var numRegisters);
            for (var i = 0; i < numRegisters; i++)
            {
                var sb = new StringBuilder(1024);
                Registers.GetDescription(i.ToUInt(), sb, 1024, out var nameLength, out var desc);
                Registers.GetValue(i.ToUInt(), out var val);
                WriteLine($"{i}:{sb}:{desc.Type.ToString()}:{desc.Flags}");
            }

            return(null);
        }