public UniversalValue toBytes() { UniversalValue uv = new UniversalValue(); uv.fromLocation(this); return(uv); }
public void toUV(UniversalValue uv) { bool exists = _buffer.ContainsKey(_counter); if (!exists) { uv.fromEmpty(); return; } uv.fromLocation(_buffer[_counter]); }
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); }
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()); } }
public void swapWithUV(UniversalValue uv) { _uv.fromLocation(uv.toBytes()); toUV(uv); fromUV(_uv); }