It's indeed not as easy as it sounds. We spent an inordinate amount of time (and quite some cash) on designing a circuit on the latest Spectrum Next that worked as well as the 128 (the watermark).

It took several revisions and huge testing to (hopefully) get it right.