예제 #1
0
        public void Execute()
        {
            var t_Value = m_First.Load <int>() -
                          m_Second.Load <int>();

            m_Destination.Store(t_Value);
        }
예제 #2
0
 public void Execute()
 {
     if (m_CompareLocation.Load <byte>() == 0)
     {
         m_Destination.Store(m_Value);
     }
 }
예제 #3
0
        public void ExecuteLoadIfZeroOperation()
        {
            var t_Destination = new MemoryLocation(new MemoryAddress(4), m_Bank);

            new OpLoadConstIfZero <int>(5,
                                        t_Destination,
                                        new MemoryLocation(new MemoryAddress(8), m_Bank))
            .Execute();

            t_Destination.Load <int>()
            .Should().Be(5);
        }
예제 #4
0
 public void Execute()
 {
     m_To.Store(m_From.Load <T>());
 }