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); }
/// <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); }