Once you have sign-extended the 24-bit number to a 32-bit number, its range is from -8388608 to +8388607. Simply adding 8388608 to it converts it to the range from zero to 16777215.
Pete
Once you have sign-extended the 24-bit number to a 32-bit number, its range is from -8388608 to +8388607. Simply adding 8388608 to it converts it to the range from zero to 16777215.
Pete