Пример #1
0
 public override VDecimal Dim(RAMRange ram, string name)
 {
     base.Dim(ram, name);
     Name       = name;
     Integer    = VarN.Ref(Address[FracLen], IntLen, $"{name}_Int");
     Fractional = VarN.Ref(Address[0], FracLen, $"{name}_Frac");
     return(this);
 }
Пример #2
0
 /// <summary>
 /// Make this variable a pointer to a particular memory address.
 /// </summary>
 public VWord PointTo(VarN vn)
 {
     if (vn.Size != 2)
     {
         throw new Exception("Value must have a size of 2 bytes");
     }
     Lo.Set(vn[0]);
     Hi.Set(vn[1]);
     return(this);
 }