Esempio n. 1
0
        public String debugInfo()
        {
            String s = "Stack: ";

            for (int i = 0; i < pos; i++)
            {
                s += ALifeConsts.numberFormat(stack[i]) + " | ";
            }
            return(s);
        }
Esempio n. 2
0
        public string debugInfo(string prefix)
        {
            string saida = prefix + " = ";

            for (int i = 0; i < ALifeConsts.REGISTRADORES; i++)
            {
                saida += ALifeConsts.getLetter(i) + "X:"
                         + ALifeConsts.numberFormat(getReg(i)) + " ";
            }
            saida += "SP:" + ALifeConsts.numberFormat(sp()) + " IP:"
                     + ALifeConsts.numberFormat(ip) + " E:" + ((int)_error)
                     + " ID:" + id;
            if (_child != null)
            {
                saida += " (Child:" + _child.id + " size:"
                         + ALifeConsts.numberFormat(_child.getMemorySize()) + " )";
            }

            saida += Environment.NewLine + "#" + stacks.debugInfo();
            return(saida);
        }