Esempio n. 1
0
        //установка видеопамяти
        private void SetVideoMem(ExtendedBitArray memory)
        {
            int index = new ExtendedBitArray(_addr.ToBinString().Substring(CountIgnoredBits())).NumValue();

            if (_form.SevenSegmentCount == 6)
            {
                index = index % 6;
            }

            _videoMem[index] = memory;

            if (IsAutoincrement())
            {
                _addr.Inc();
                _addr.Mod(new ExtendedBitArray(_form.SevenSegmentCount));
            }
        }