Ejemplo n.º 1
0
        public UniversalValue toBytes()
        {
            UniversalValue uv = new UniversalValue();

            uv.fromLocation(this);
            return(uv);
        }
Ejemplo n.º 2
0
        public void toUV(UniversalValue uv)
        {
            bool exists = _buffer.ContainsKey(_counter);

            if (!exists)
            {
                uv.fromEmpty();
                return;
            }
            uv.fromLocation(_buffer[_counter]);
        }
Ejemplo n.º 3
0
        public override void execute(MK52_Host components, string command)
        {
            Register_Memory rm   = _RegMem(components);
            UniversalValue  ptrE = _ExtMem(components).getCurrentLine();
            UniversalValue  ptrR = rm._registerAddress(rm.registerByName(command));

            if (ptrE.isEmpty())
            {
                ptrR.fromInt(0);
                return;
            }
            ptrR.fromLocation(ptrE);
        }
Ejemplo n.º 4
0
        public void XtoM(int n)
        {
            if (n < 0 || n >= REGISTER_MEMORY_NVALS)
            {
                return;
            }
            UniversalValue uv = _registerAddress(n);

            if (n < 16)
            {
                uv.fromLocation(_rst.X);
            }
            else
            {
                uv.fromInt(_rst.X.toInt());
            }
        }
Ejemplo n.º 5
0
 public void swapWithUV(UniversalValue uv)
 {
     _uv.fromLocation(uv.toBytes());
     toUV(uv);
     fromUV(_uv);
 }