Exemplo n.º 1
0
        public int GetUpCodes(List<byte[]> cmds)
        {
            List<byte[]> codes = new List<byte[]>();

            GetAttributeCodes(codes, 3);

            codes.AppendList(Codes[2]);
            codes.DeleteComments();

            int count = codes.Count;

            replaceToValues(codes, 0);
            cmds.AppendList(codes);
            return count;
        }
Exemplo n.º 2
0
        public int GetLoadCodes(List<byte[]> list, byte replace)
        {
            List<byte[]> codes = new List<byte[]>();

            GetAttributeCodes(codes, 1);
            codes.DeleteComments();
            int count = codes.Count;

            replaceToValues(codes, replace);
            list.AppendList(codes);
            return count;
        }
Exemplo n.º 3
0
        private int getRefCodes(List<byte[]> cmds)
        {
            List<byte[]> codes = new List<byte[]>();

            GetAttributeCodes(codes, 0);
            codes.DeleteComments();

            int count = codes.Count;

            replaceToValues(codes, 0);
            cmds.AppendList(codes);

            return count;
        }
Exemplo n.º 4
0
        public int GetCompileRefCodes(List<byte[]> cmds)
        {
            int count = 0;
            List<byte[]> codes = new List<byte[]>();
            GetAttributeCodes(codes, 4);

            codes.DeleteComments();
            count = codes.Count;

            replaceToValues(codes, 2);
            Utility.AddList(cmds, codes);

            return count;
        }
Exemplo n.º 5
0
        private int getDownCodes(List<byte[]> list)
        {
            List<byte[]> codes = new List<byte[]>();

            GetAttributeCodes(codes, 2);

            codes.AppendList(Codes[1]);
            codes.DeleteComments();

            int count = codes.Count;

            replaceToValues(codes, 0);
            list.AppendList(codes);

            return count;
        }