Пример #1
0
        /// <summary>
        /// Peek the specified address.
        /// </summary>
        public ushort Peek(ushort address)
        {
            var t = new UShortToBytesLayout {
                HighByte = Memory[address], LowByte = Memory[address + 1]
            };

            return(t.Value);
        }
Пример #2
0
        /// <summary>
        /// Poke the specified address and value.
        /// </summary>
        public void Poke(ushort address, ushort value)
        {
            var t = new UShortToBytesLayout {
                Value = value
            };

            Poke(address, t.HighByte);
            Poke((ushort)(address + 1), t.LowByte);
        }
Пример #3
0
        void SetBCRegisterValue(ushort value)
        {
            var t = new UShortToBytesLayout {
                Value = value
            };

            SetRegisterValue(RegisterName.B, t.HighByte);
            SetRegisterValue(RegisterName.C, t.LowByte);
        }
Пример #4
0
        ushort GetBCRegisterValue()
        {
            var t = new UShortToBytesLayout
            {
                HighByte = GetRegisterValue(RegisterName.B),
                LowByte  = GetRegisterValue(RegisterName.C)
            };

            return(t.Value);
        }