Question

In: Computer Science

(16) Convert the following numbers into 8-bit hexadecimal values. Number Binary Complemented Two's Complement Hex -102...

(16) Convert the following numbers into 8-bit hexadecimal values.
Number Binary Complemented Two's Complement Hex
-102
-87
-31
(17) Add up the first two binary numbers from the previous problem in Two’s complement form.  
(17a) What is the sum in hex?
(17b) What is the sign bit?
(17c) Did overflow occur?
(17d) Code this up in 68K and include a screenshot of the output here as well as your source & listing files. What happens?

Please show work!

If you can't do 17 d I understand, no worries!!!

Solutions

Expert Solution

(16) Convert the following numbers into 8-bit hexadecimal values.
Number Binary Complemented Two's Complement Hex
-102 -01100110 10011001 10011010 -66
-87 -01010111 10101000 10101001 -57
-31 -00011111 11100000 11100001 -1F

(17) Add up the first two binary numbers from the previous

problem in Two’s complement form.  

First Number:

Second Number:

Sum:

10011010

10101001

1 01000011

(17a) What is the sum in hex?

43 (In 2's complement)

BD

(17b) What is the sign bit? 0
(17c) Did overflow occur? Yes

Question 17:

Explanation:

The first Number in binary representation is: 01100110

The second Number in binary representation is: 01010111

After two's complement the numbers are:

First Number: 10011010

Second Number: 10101001

When we add two negative numbers and the carry will be generated from the sign bit will be discarded. The final sum will be the 2's complement of the magnitude bits fo the result in the binary format and sign will be negative.

Sum: 10011010 + 10101001 = 1 0100 0011

But this sum is in two's complement form.

Final sum is = - 01011 1101


Related Solutions

Convert the following decimal numbers to 16-bit 2’s complement binary. Display your result in hexadecimal. a.3030...
Convert the following decimal numbers to 16-bit 2’s complement binary. Display your result in hexadecimal. a.3030 b.404 c.5050 d.-5050 e.-20000 Show work with steps
Convert the following binary values to hexadecimal and decimal (1 pt each) Write Hex Numbers as...
Convert the following binary values to hexadecimal and decimal (1 pt each) Write Hex Numbers as 0x##(ex 0x0A, 0xFF) Binary Hexadecimal Decimal 0001-1011 0x 0000-1000 0000-0100 0000-1001 0001-1111 1001-1001 0111-1010 1100-0010 1110-0101 1000-1010 0011-0100 0001-1001 0100-0011 1111-1111 1110-0111 0001-0010 0100-1000 0100-1110 1001-0001 0110-1100 Name: Convert the following hexadecimal values to binary and decimal Write binary numbers as 0000-0000 Hexadecimal Binary Decimal 0xf1 0xac 0x56 0x6c 0x32 0x30 0x05 0x28 0xf0 0x07 0x42 0xb9 0x6d 0x2f 0x71 0x0e 0x2d 0xfb 0xba...
Represent the following numbers in binary 8-bit representation using singed magnitude, one's complement, two's complement, and...
Represent the following numbers in binary 8-bit representation using singed magnitude, one's complement, two's complement, and excess-127 representations: a) 48 b) -35
Convert the following hexadecimal representations of 16-bit 2’s complement binary numbers to decimal. a.FCAD b.DEAD c.1111...
Convert the following hexadecimal representations of 16-bit 2’s complement binary numbers to decimal. a.FCAD b.DEAD c.1111 d.8000 e.FACE
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!!!!
(6 marks- 3 marks each) The following hexadecimal values are shorthand for 16-bit two’s complement binary...
(6 marks- 3 marks each) The following hexadecimal values are shorthand for 16-bit two’s complement binary numbers. Working purely in hex, negate each and then state whether the result is positive or negative. (a) 5E91 (b) D00F 2.
represent 8912 in 16-bit binary format and then convert it to Hexadecimal form.
represent 8912 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT