What is the best, quickest way to invert all bits within a u-word?
I want to write commands (start/stop/auto/off) to a Genset, which requires a code number to be written to one register, and the same write action has to write the ones-complement of that code to a second register. Attached are a few rungs of code that accomplish this, but I'm sure there is such an instruction somewhere.