/// <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); }
/// <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); }
void SetBCRegisterValue(ushort value) { var t = new UShortToBytesLayout { Value = value }; SetRegisterValue(RegisterName.B, t.HighByte); SetRegisterValue(RegisterName.C, t.LowByte); }
ushort GetBCRegisterValue() { var t = new UShortToBytesLayout { HighByte = GetRegisterValue(RegisterName.B), LowByte = GetRegisterValue(RegisterName.C) }; return(t.Value); }