Exemplo n.º 1
0
        //  Resolve for the string-hex version of the event word and adjust the number
        //  of parameters to the amount indicated by the event word.
        public void ResolveEventWord()
        {
            eventId = eventWord.ToString("X");
            eventId = eventId.PadLeft(8, '0');
            if (eventId.Length > 8)
                eventId = eventId.Substring(eventId.Length - 8);

            lParameters = (eventWord & 0xFF00) / 0x100;

            Array.Resize<Block>(ref parameters, (int)lParameters);
            for (int i = 0; i < lParameters; i++) parameters[i] = new Block();
        }
Exemplo n.º 2
0
        //  Return the name of the external pointer corresponding to the address if
        //  one is available, otherwise return the string of the value passed.
        public string ResolvePointer(long pointer, Block parameter)
        {
            if (GetByte(pointerList, pointer) == 2)
            {
                long nPointer = GetWord(pointerList, pointer) & 0xFFFFFF;
                return "External: name=" + GetString(nameList, nPointer);
            }

            return "0x" + Hex8(parameter.word2);
        }