Exemple #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);
            }
        }
Exemple #2
0
        public void execute()
        {
            byte b7 = Convert.ToByte(ByteHelper.chkBit(i.ACC, 7));

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

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