mirror of
https://github.com/johnwinans/rvalp.git
synced 2025-09-27 05:04:39 -04:00
Fix operand bit length in unsigned 3-4 example
This commit is contained in:
parent
9613886753
commit
0fc3eb4039
@ -829,16 +829,16 @@ that can be represented with an unsigned binary number.)
|
|||||||
\begin{figure}[H]
|
\begin{figure}[H]
|
||||||
\centering
|
\centering
|
||||||
\begin{BVerbatim}
|
\begin{BVerbatim}
|
||||||
0 0 0 0 0 1 1 <== 3 (minuend)
|
0 0 0 0 0 0 1 1 <== 3 (minuend)
|
||||||
- 0 0 0 0 1 0 0 <== 4 (subtrahend)
|
- 0 0 0 0 0 1 0 0 <== 4 (subtrahend)
|
||||||
---------------
|
-----------------
|
||||||
|
|
||||||
|
|
||||||
0 0 0 0 0 1 1 1 <== carries
|
0 0 0 0 0 0 1 1 1 <== carries
|
||||||
0 0 0 0 0 1 1 <== 3
|
0 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 0 1 1 <== one's complement of 4
|
||||||
---------------
|
-----------------
|
||||||
1 1 1 1 1 1 1 <== 255 (overflow)
|
1 1 1 1 1 1 1 1 <== 255 (overflow)
|
||||||
\end{BVerbatim}
|
\end{BVerbatim}
|
||||||
\caption{$3-4=255$ (overflow)}
|
\caption{$3-4=255$ (overflow)}
|
||||||
\label{sum:3-4}
|
\label{sum:3-4}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user