示例#1
0
        public static string GetTypeName(TArmRegisterType aType)
        {
            string ret = "??";

            //
            try
            {
                ret = EnumUtils.ToString(aType);
            }
            catch (Exception)
            {
            }
            //
            return(ret);
        }
示例#2
0
        public ArmRegister(TArmRegisterType aType, string aOriginalName, uint aValue)
        {
            Value = aValue;

            // Save original name - used for UI presentation only
            iOriginalName = aOriginalName;

            // First map the name to a native type (if possible)
            RegType = aType;

            // Then map that type back onto a name, replacing
            // what the client originally supplied. This is because
            // we want to keep names consistent, e.g. R09 everwhere
            // instead of R9 and R09 depending on client behaviour.
            Name = GetTypeName(RegType);
        }