Exemplo n.º 1
0
 public void SetU16(Core.Address addr)
 {
     _liveQueue.Write(Y, () => {
         _liveQueue.Push(_opAddr);
         _liveQueue.Push(addr.Hi);
         _liveQueue.Push(addr.Lo);
     });
 }
 public void Write(Core.Address addr)
 {
     _liveQueue.Write(Y, () => {
         _liveQueue.Push(_opPalettes);
         _liveQueue.Push(addr.Lo);
         _liveQueue.Push(addr.Hi);
     });
 }
Exemplo n.º 3
0
 public void Write(Core.Address ramStart, U8 len)
 {
     _liveQueue.Write(Y, () => {
         _liveQueue.Push(_opExecuteRom);
         _liveQueue.Push(ramStart.Lo);
         _liveQueue.Push(ramStart.Hi);
         _liveQueue.Push(len);
     });
 }
 public static Address ToModel(this Core.Address address)
 {
     if (address == null)
     {
         return(null);
     }
     return(new Address()
     {
         Line1 = address.Line1,
         Line2 = address.Line2,
         City = address.City,
         Pincode = address.Pincode,
         State = address.State
     });
 }
Exemplo n.º 5
0
        public static AnalyticalModel ToSAM_AnalyticalModel(this TBD.Building building)
        {
            if (building == null)
            {
                return(null);
            }

            ProfileLibrary profileLibrary = building.ToSAM_ProfileLibrary();

            Core.MaterialLibrary materialLibrary = building.ToSAM_MaterialLibrary();

            Core.Location location = new Core.Location(building.name, building.longitude, building.latitude, 0);
            location.SetValue(Core.LocationParameter.TimeZone, Core.Query.Description(Core.Query.UTC(building.timeZone)));

            Core.Address address = new Core.Address(null, null, null, Core.CountryCode.Undefined);

            return(new AnalyticalModel(building.name, null, location, address, ToSAM(building), materialLibrary, profileLibrary));
        }
Exemplo n.º 6
0
 public static Var Create(Core.Address addr)
 {
     return(new Var {
         type = etype.ADR, Address = addr, size = addr.DataType.Size
     });
 }