I want to connect a BCD thumbwheel to my board. However, instead of 1001 = 9 which is what the thumbwheel outputs, I need 0110.

I'm not sure why the circuitry is like this but I was wondering if there was a simple command to flip a whole variable or what the best way to do this would be?

Thank you.