Completed: / exercises

Number representations

Complementary calculation (1p)

Let's quickly practise subtracting two 8-bit numbers using two's complement.
Give your answer as three 8-bit binary numbers as in the example below, where x and y are the operands, and z is the result:
xxxxxxxx
yyyyyyyy
zzzzzzzz
Second operand must be always negative.

Warning: You have not logged in. You cannot answer.
?