Question

In: Computer Science

Complete the following table. All binary numbers are 8-bit signed integers. (Don't forget to show the...

  1. Complete the following table. All binary numbers are 8-bit signed integers.

    (Don't forget to show the steps of your solution!)

Decimal value

Sign-magnitude representation

Ones' complement representation

Two's complement representation

-98

10001011

01110101

10100100

  1. Compute the results of the indicated operations in columns 2 and 3, assuming that the binary numbers represent integers in the formats given by column 1. Identify which of the operations, if any, results in an overflow. (Don't forget to show the steps of your solution!)

11010010

+ 00111101

10100000

- 00011101

Unsigned

Sign-magnitude

Ones' complement

Two's Complement

Solutions

Expert Solution

I have mentioned where overflow occurs and where overflow does not occur. If you have any doubts in case of 2s compliment just do XOR operation for the most significant bits.You can also implement this for the 1 s compliment also.

You can also do the same and obtain the same result by converting them into the unsigned form and do arithmetic on unsigned representation of numbers.


Related Solutions

1. Complete the following table using 8-bit representation ((show your work to get credit) Decimal Signed...
1. Complete the following table using 8-bit representation ((show your work to get credit) Decimal Signed Magnitude One’s Complement Two’s Complement 30 -47 0
Convert the following numbers to 8-bit binary and 8-bit hexadecimal: a) 20 b) 78 c) -25...
Convert the following numbers to 8-bit binary and 8-bit hexadecimal: a) 20 b) 78 c) -25 d) -96 Convert the following hexadecimal numbers to binary and decimal assuming two's compliment format: a) 0x56 b) 0x14 c) 0xF8 d) 0xCC MUST DO ALL PROBLEMS AND SHOW ALL WORK!!!!
Multiply the following 16 bit signed binary number together Provide a 32bit signed binary answer 0000...
Multiply the following 16 bit signed binary number together Provide a 32bit signed binary answer 0000 0001 0001 0001 1111 1111 1000 0000
1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert...
1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert 69 (base 10) to 8-bit binary using one’s complement. Show your work 1c. Convert 70 (base 10) to 8-bit binary using two’s complement. Show your work. 1d. Convert - 67 (base 10) to 8-bit binary using signed magnitude. 1e. Convert - 67 (base 10) to 8-bit binary using ones compliment. Show your work. 1f. Convert - 67 (base 10) to 8-bit binary using 2s...
Assume -122 and -66 are signed 8-bit decimal integers. Calculate -122 + (- 66). and -122...
Assume -122 and -66 are signed 8-bit decimal integers. Calculate -122 + (- 66). and -122 - (- 66). Do we have overflow or underflow after each operation? Why?
Convert the following numbers to 32-bit, 2s compliment binary and hexadecimal formats. Show your work in...
Convert the following numbers to 32-bit, 2s compliment binary and hexadecimal formats. Show your work in recursive division form. 899726616 1656906428 -77102817 -251026154
Convert each of following numbers to Binary numbers, showing all steps. a. (572) 8 b. (1604)...
Convert each of following numbers to Binary numbers, showing all steps. a. (572) 8 b. (1604) 8 c. (1066)10 d. (99)10 e. (80E)16 f. (135AB)16
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
In Verilog, implement a circuit capable of adding and subtracting 8-bit binary numbers. You should submit...
In Verilog, implement a circuit capable of adding and subtracting 8-bit binary numbers. You should submit a single Verilog file that contains all of the necessary modules and also contain a module named top(A, B, sel, F, C). For the selection, use a 0 to select Addition and a 1 to select Subtraction.
In C++ with lots of comments please Complete a binary search tree of 20 numbers Show...
In C++ with lots of comments please Complete a binary search tree of 20 numbers Show in the output the steps while it's performing the search with 20 numbers in a text file called list.txt The numbers will be imported to the program Simple program that should let you have the option to search for numbers, remove numbers, print numbers, and insert numbers in the binary tree If the number isn't there then give an error
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT