Exemplo n.º 1
0
        public string debugInfo(string prefix)
        {
            string saida = prefix + " = ";

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

            saida += "\n#" + stacks.debugInfo();
            return saida;
        }
Exemplo 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);
        }