From 0fc3eb4039d2d7c2377a0174f5b376c1a4506369 Mon Sep 17 00:00:00 2001 From: John Winans Date: Thu, 3 Sep 2020 12:26:25 -0500 Subject: [PATCH] Fix operand bit length in unsigned 3-4 example --- book/binary/chapter.tex | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/book/binary/chapter.tex b/book/binary/chapter.tex index b6217f0..b0c67b4 100644 --- a/book/binary/chapter.tex +++ b/book/binary/chapter.tex @@ -829,16 +829,16 @@ that can be represented with an unsigned binary number.) \begin{figure}[H] \centering \begin{BVerbatim} - 0 0 0 0 0 1 1 <== 3 (minuend) - - 0 0 0 0 1 0 0 <== 4 (subtrahend) - --------------- + 0 0 0 0 0 0 1 1 <== 3 (minuend) + - 0 0 0 0 0 1 0 0 <== 4 (subtrahend) + ----------------- - 0 0 0 0 0 1 1 1 <== carries - 0 0 0 0 0 1 1 <== 3 - + 1 1 1 1 0 1 1 <== one's complement of 4 - --------------- - 1 1 1 1 1 1 1 <== 255 (overflow) + 0 0 0 0 0 0 1 1 1 <== carries + 0 0 0 0 0 0 1 1 <== 3 + + 1 1 1 1 1 0 1 1 <== one's complement of 4 + ----------------- + 1 1 1 1 1 1 1 1 <== 255 (overflow) \end{BVerbatim} \caption{$3-4=255$ (overflow)} \label{sum:3-4}