Esempio n. 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);
        }
Esempio n. 2
0
        public override void Run(NCSContext context)
        {
            // Add the given number of bytes from the location specified
            // relative to the base pointer to the top of the stack.
            int offset = int.Parse(args[1]) - 4;
            int size   = int.Parse(args[2]);

            while (size > 0)
            {
                object value = context.GetOffsetBP(offset);
                context.Push(value);

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