I’m creating a 16-bit full adder (in Minecraft, actually), and want the result to be converted to a signed int.
I want to convert a 16-bit binary number to a signed integer in Java. More specifically, I want to convert the 16-bit binary to a 7-segment display, without using any dedicated chips.
If possible, I want this conversion to be done only using bitwise operations.
I’m actually asking this following a comment on another question.
I don’t know a bit of how to do it, I tried to search for answers and ask AI, but didn’t got any plausible answer. I need something that uses only bitwise operations, and to be explained using them, if possible. I’m a begginer in computer theory. If you can explain me step-by-step and/or using simple terms, I’d be grateful.