public void SetBuffer(IoMemory buffer) { uint address = (uint)buffer.PhysicalAddress.Value; ushort offs = eightBit ? (ushort)((address) & 0xffff) : (ushort)((address >> 1) & 0xffff); pagePort.Write8((byte)((address >> 16) & 0xff)); addrPort.Write8((byte)(offs & 0xff)); addrPort.Write8((byte)(offs >> 8)); }
public virtual void Write8(int offset, byte value) { uint config = (((uint)offset & 0xff) | ((uint)identifier << 8) | ((uint)1 << 31)); addressPort.Write32(config); dataPort.Write8((uint)(offset & 0x3), value); }
public void SetTransferLength(ushort length) { countPort.Write8((byte)(length & 0xff)); //buffersize countPort.Write8((byte)(length >> 8)); //buffersize }
public void ClearFlipFlop() { clearPort.Write8(0x00); }
public void EnableChannel() { maskPort.Write8(channel); }
public void SetControlByte() { controlByte |= controlByteMask; modePort.Write8(controlByte); }