Пример #1
0
        public override void Run(NCSContext context)
        {
            int offset = int.Parse(args[1]);

            int value = ((int)context.GetOffsetBP(offset)) + 1;

            context.SetOffsetBP(offset, value);
        }
Пример #2
0
        public override void Run(NCSContext context)
        {
            // Copy the given number of bytes from the base pointer
            // down to the location specified.
            int offset = int.Parse(args[1]) - 4;
            int size   = int.Parse(args[2]);

            int startPos = -size;

            while (size > 0)
            {
                object val = context.GetOffsetSP(startPos);
                context.SetOffsetBP(offset, val);

                startPos += 4;
                offset   += 4;
                size     -= 4;
            }
        }