write_zsreg — Write to a Z8530 channel register
The Z8530 channel
Register number
Value to write
Write a value to an indexed register. The caller must hold the lock to honour the irritating delay rules. We know about register 0 being fast to access.
Assumes c->lock is held.