Question

How to do the following operations in 1CF and 2CF arithmetics; in binary. (a) Addition of...

How to do the following operations in 1CF and 2CF arithmetics; in binary.
(a) Addition of (+125) + (−37) in 1CF and 2CF arithmetics
(b) Subtraction of (−125) − (−37) in 1CF and 2CF arithmetics
show the operations, the operands, and the results in binary, and tell whether there is overflow or not for each operation

Homework Answers

Answer #1

(a) Addition of (+125) + (−37) in 1CF and 2CF arithmetics
Answer:-----------

By Using 1's complement :----------------

(+125)10 = (1111101)2
(−37)10 = (-0100101)2

(1111101)2 =======> 0 1111101
(-0100101)2   ======>  1 1011010 (taking 1's complement)
=================> 1 01010111
=================> ----------- +1 (carry)
=================> 0 1011000
=================> (+88)10

By Using 2's complement :----------------

(+125)10 = (1111101)2
(−37)10 = (-100101)2

(1111101)2 =======> 0 1111101
(-0100101)2   ======>  1 1011011 (taking 2's complement)
=================> 1 01011000
=================> 0 1011000 ( carry is discarded)
=================> (+88)10



Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
How do you do the following operations in 1CF and 2CF arithmetics? For each operation, give...
How do you do the following operations in 1CF and 2CF arithmetics? For each operation, give the decimal equivalent of the operands and result. (a) 10010110 + 10100101 (b) 01111000 − 11010010
Define a class BinaryNumber that represents binary numbers and a few simple operations on them, as...
Define a class BinaryNumber that represents binary numbers and a few simple operations on them, as indicated below. An example of a binary number is 1011 Its length is 4. Note that its leftmost digit is the least significant one: it represents the decimal number 1∗20 +0∗21 +1∗22 +1∗23 = 13. This is called little-endian format. You may use big-endian if you prefer; in that case you must state so at the beginning of your code as part of the...
CCR flags get set by ADD and SUB instructions. Perform the following binary operations and provide...
CCR flags get set by ADD and SUB instructions. Perform the following binary operations and provide the resulting N, Z, C and V flag values. Only the values for the flags. not the binary addition/subtraction 0011 0111 + 0101 1011 ------------ N =    Z =    C =    V = 1011 1111 + 0100 1001 ------------ N =    Z =    C =    V = 0000 1011 + 0011 1101 ------------ N =    Z =    C =    V = Note this is...
1. Show how you would do the following sum in binary (make sure to convert to...
1. Show how you would do the following sum in binary (make sure to convert to binary first and give the result in both binary and base 10): 63+125 2. How many binary sequences are there of length n? 3. What is two’s complement and why is it used?
The following 5 questions use two's complement representation. You MUST use 5 (five) bit binary. (ex....
The following 5 questions use two's complement representation. You MUST use 5 (five) bit binary. (ex. 000012) DO NOT Extend beyond 5 bits. A = +13 B = +4 C = -6 a.) A - B = _______________ 2        b.) A - B results in overflow. true or false? c.)C + A = _____________ 2 d.)C + A results in overflow. true or false? e.) C - A = ______________________2 f.) C - A results in overflow. true or false?...
Question 1) For a given CPU, the cycle latency for the a set of operations are...
Question 1) For a given CPU, the cycle latency for the a set of operations are given as follows: -Addition: 4 -Subtraction: 8 -Multiplication: 64 -Division: 128 If the CPU clock of this CPU runs at 2048 MHz, find the following a) How many operations of each of the list above can this CPU perform in 5 minutes. b) If we have 1024M of each operation in the list, compute the required time in seconds to execute all operations. Please...
1. Consider the set (Z,+,x) of integers with the usual addition (+) and multiplication (x) operations....
1. Consider the set (Z,+,x) of integers with the usual addition (+) and multiplication (x) operations. Which of the following are true of this set with those operations? Select all that are true. Note that the extra "Axioms of Ring" of Definition 5.6 apply to specific types of Rings, shown in Definition 5.7. - Z is a ring - Z is a commutative ring - Z is a domain - Z is an integral domain - Z is a field...
The following are attempts to define a binary operation on a set, are they actually binary...
The following are attempts to define a binary operation on a set, are they actually binary operations on the given set? If yes, prove it and if not please provide an explanation. 1) a*b = a-b on S, S is the set Z of integers. 2) a*b = a log b on S, S is the set R+ of positive real numbers 3) a*b = |a+b| on S, S is the set of Real numbers. what I want to know...
Calculate A+B, A-B, for the following pairs of binary numbers.  Also, you must use 2’s complement arithmetic...
Calculate A+B, A-B, for the following pairs of binary numbers.  Also, you must use 2’s complement arithmetic to perform the subtraction operation. (a) 10101, 1011 (c) 101, 1011
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and...
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and to hex Convert 0xD1 (hexadecimal) to binary and to decimal Convert 0b11001001 (binary) to hex and to decimal Find the 2’s complement of the following 4-bit numbers 1101 0101 Perform the following 4-bit unsigned operations. For each, indicate the 4-bit result and the carry bit, and indicate if the answer is correct or not. 5 + 8 2 + 12 13 – 7 4...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT