3 ms·
In a microprocessor with fixed-size registers numbers of 5 and 7 bits are going to be extended to at least 8 bits and interleaved into a code of 16, 32, 64 or e
by HelloNurse 3y ago
In a microprocessor with fixed-size registers numbers of 5 and 7 bits are going to be extended to at least 8 bits and interleaved into a code of 16, 32, 64 or even more bits: knowing that y5 and y6 are zero doesn't allow for a more efficient computation.
On the other hand, if you intend to store and compare compact codes of 12 bits you only need a few shift, OR and AND operations (or possibly dedicated fancy instructions) to knock out the known zero bits and place the significant digits contiguously.