Question

In: Computer Science

Calculate the following issues in bit-level (signed values, two complement arithmetics) a) 13 + 9 (use...

Calculate the following issues in bit-level (signed values, two complement arithmetics)

a) 13 + 9 (use word lengths of 5 and 6 bits including the sign bit)

b) 11 – 17 (8-bit word length)

c) 9 * 5 (8-bit word length)

d) a-task using saturative arithmetics

Solutions

Expert Solution

All operations performed in binary format is shown in below

(a) Operation13+9 using word length=5

13 + 0 1 1 0 1
9 0 1 0 0 1
= -10 1 0 1 1 0

Operation13+9 using word length=6

13+ 0 0 1 1 0 1
9 0 0 1 0 0 1
=22 0 1 0 1 1 0

(b)Operation11-7 using word length=8

11 0 0 0 0 1 0 1 1
-7 1 1 1 1 1 0 0 1
=4 0 0 0 0 0 1 0 0

(c)Operation9*5 using word length=8

9 * 0 0 0 0 1 0 0 1
5 0 0 0 0 0 1 0 1
=45 0 0 1 0 1 1 0 1

(d)Saturation arithmetic is a version of arithmetic in which all operations such as addition and multiplication are limited to a fixed range between a minimum and maximum value.If the result of an operation is greater than the maximum, it is set to the maximum; if it is below the minimum, it is set to the minimum.

Operation13+9 using word length=5 using saturation arithmetic

here maximum value is 24 -1=15 and minimum value is -24 = -16

13+ 0 1 1 0 1
9 0 1 0 0 1
=15 0 1 1 1 1

Related Solutions

add -54 and -101 using 9 bit 2's complement
add -54 and -101 using 9 bit 2's complement
add -54 and -101 using 9 bit 2's complement
add -54 and -101 using 9 bit 2's complement
add -54 and -101 using 9 bit 2's complement
add -54 and -101 using 9 bit 2's complement
a)The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. b)The decimal...
a)The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. b)The decimal equivalent of the unsigned 8-bit hex number 0B4H is ______________. c)The value of the expression ‘H’ – ‘B’ is less than / equal to / greater than that of the expression ‘L’ – ‘C’. d)If the .data segment contains declarations                         A    BYTE      2 DUP (‘a’), ‘+’ B    BYTE      3 DUP (‘b’), 0 C    BYTE      4 DUP (‘c’), ‘–’ D    BYTE     ...
Complete the matrix below (use 4 bits) Signed Integer Signed Magnitude 1’s Complement 2’s Complement Excess-7...
Complete the matrix below (use 4 bits) Signed Integer Signed Magnitude 1’s Complement 2’s Complement Excess-7 5 -3
Complete the matrix below (use 4 bits) Signed Integer Signed Magnitude 1’s Complement 2’s Complement Excess-7...
Complete the matrix below (use 4 bits) Signed Integer Signed Magnitude 1’s Complement 2’s Complement Excess-7 5 -3
(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.
The result of subtracting the following two signed binary numbers on an eight bit machine is...
The result of subtracting the following two signed binary numbers on an eight bit machine is      10110011    - 01101001
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.
ASSEMBLY LANGUAGE PROGRAMMING 1. The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B...
ASSEMBLY LANGUAGE PROGRAMMING 1. The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. 2. The decimal equivalent of the unsigned 8-bit hex number 0B4H is ______________. 3. The value of the expression ‘H’ – ‘B’ is less than / equal to / greater than that of the expression ‘L’ – ‘C’. 4. If the .data segment contains declarations A BYTE 2 DUP (‘a’), ‘+’ B BYTE 3 DUP (‘b’), 0 C BYTE 4 DUP (‘c’),...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT