Skip to main content

Computer Architecture · Instruction-set architecture and assembly semantics

Encode each of the decimal integers -73, -1, 0, 1, and 119 as an 8-bit two's-complement…

Problem

Computer Architecture practice problem

Encode each of the decimal integers −73-73, −1-1, 00, 11, and 119119 as an 88-bit two's-complement bit string, writing bits with the most significant bit on the left. For each of the five encodings, also give the unsigned interpretation of that same 88-bit string as a decimal integer.

Hint

Hint

Nonnegative values encode as themselves in binary. A negative value xx encodes as the 88-bit unsigned representative of x+256x+256.

Check your work

Work the problem yourself first. Then open it in Training to check your answer and read the full worked solution.

Create a free account to check your answer and see the solution. Create a free account.

More Computer Architecture practice problems