Given the following x 0b001 11101 y 10001110assumed signed

Given the following x = 0b001 11101 y = 10001110;//assumed signed values perform each operation and give the 8-bit binary result to the left of each problem. The first is already done as an example. Multiplication, division and modulo can be converted to decimal before performing, but all other operations should be done in binary. Show any work required 00111110 x + 1 x + y y - x x - y x astir 2 x/8 x percentage 8 x/10 x percentage 10 +x -x -y ~x ~y !x x 2 y 2 x 2 y 2 x & y x | y x y 1 && 0 x && 0 x && 1 x && y x || 1 x || y 1 = 0 x = 61 x = y x != 12 x != y x = y

Solution

00111110                x+1

00101111                x+y

11001011                 y-x

01001011                 x-y

01111010                 x*2

Not possible             x/8          8 is not a binary number

Not possible             x%8         8 is not a binary number

0011110                    x/10        considering 10 as binary                                                                       

0000001                                    considering 10 as binary

10111101                    -x

00001110                   -y

01000010                    ~x

11110001                     ~y

01110100                      x<<2

10111000                     y<<2

00001111                        x>>2

10000011                        y>>2

10001100                          x&y

10111111                           x|y

0                                           1&&0

0                                            X&&0

Logical operator                   x&&1

Logical operator                   x&&y

Logical operator                    x||1

Logical operator                     x||y

Logical operator (0)                   1==0             

Logical operator (1)                   X==61

Logical operator (0)                   X==y

Logical operator (1)           X!=12

                                                      

Logical operator            X!y

Logical operator (0)            X<y

Logical operator (0)           X<=y

Logical operator (1)                x>y

Logical operator (1)           x>=y

 Given the following x = 0b001 11101 y = 10001110;//assumed signed values perform each operation and give the 8-bit binary result to the left of each problem. T
 Given the following x = 0b001 11101 y = 10001110;//assumed signed values perform each operation and give the 8-bit binary result to the left of each problem. T

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site