Esempio n. 1
0
        public void execute()
        {
            byte b0 = Convert.ToByte(ByteHelper.chkBit(i.ACC, 7));

            i.ACC = (byte)((i.ACC << 1) | Convert.ToInt16((i.CY)));
            if (b0 == 1)
            {
                i.PSW = i.PSW.setBit(bits.bit7);
            }
            else
            {
                i.PSW = i.PSW.clrBit(bits.bit7);
            }
        }
Esempio n. 2
0
        public void execute()
        {
            byte b7 = Convert.ToByte(ByteHelper.chkBit(i.ACC, 7));

            i.ACC = (byte)((i.ACC << 1) | b7);
        }
Esempio n. 3
0
        public void execute()
        {
            byte b0 = Convert.ToByte(ByteHelper.chkBit(i.ACC, 0));

            i.ACC = (byte)((i.ACC >> 1) | (b0 << 7));
        }