Mark Yourself Question
An eight-bit adder is given the operands 0x5A and 0x3C and stores the eight-bit result in a register. The surrounding firmware reads that register in two places: once as an unsigned integer and once as an eight-bit two's-complement signed integer.
Unlock full course notes by signing up
Digital Electronics and Binary Representation: difficulty 3
A laboratory wants to give each of its 300 distinct reagent vials a unique binary code stored in a fixed-width field.
What is the minimum field width in bits, and how many codes are left unused at that width? Give the unused codes as a percentage of the field's capacity, to one decimal place.
If the field must instead occupy a whole number of bytes, what width is used and how many codes go unused then?