コード例 #1
0
 public void SetU16(Core.Address addr)
 {
     _liveQueue.Write(Y, () => {
         _liveQueue.Push(_opAddr);
         _liveQueue.Push(addr.Hi);
         _liveQueue.Push(addr.Lo);
     });
 }
コード例 #2
0
 public void Write(Core.Address addr)
 {
     _liveQueue.Write(Y, () => {
         _liveQueue.Push(_opPalettes);
         _liveQueue.Push(addr.Lo);
         _liveQueue.Push(addr.Hi);
     });
 }
コード例 #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);
     });
 }
コード例 #4
0
 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
     });
 }
コード例 #5
0
ファイル: AnalyticalModel.cs プロジェクト: HoareLea/SAM_Tas
        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));
        }
コード例 #6
0
ファイル: var.cs プロジェクト: xxtxiaofeng/reko
 public static Var Create(Core.Address addr)
 {
     return(new Var {
         type = etype.ADR, Address = addr, size = addr.DataType.Size
     });
 }