Suppose that a is an unsigned integer whose value is (hexadecimal) 0xa2ca. Write the corresponding bit pattern for this value. Then evaluate each of the following bitwise expressions, first showing the resulting bit pattern and then the equivalent hexadecimal value.
Suppose that a is an unsigned integer whose value is (hexadecimal) 0xa2ca. Write the corresponding bit pattern for this value. Then evaluate each of the following bitwise expressions, first showing the resulting bit pattern and then the equivalent hexadecimal value. Utilize the original value of a in each expression. Assume that a is stored in a l6-bit word. (a) ~a (h) a >> a (a) a a -(013f06 << 8) (b) a a. mates (1′) :1 << 5 (p) a ” ~0x31’06 << 8 (c) a ” Ox31’06 (j) a s -a (q) (a ‘ -Ox3f08) << 8 (d) a | Ox3f06 (k) a * —a (r) a * ~(0x3ros << 8) (e) a a ~0x3f06 (I) a | -a (s) a | 413106 << 8 (f) a ” —0x3f06 (m) a a. ~0x31’06 << 3 (I) (a l ~0x3f06) << B (g) a|~0x3m6 (n) (a a. -ox31’06) << 3 (u) a | ~{0x3ros << 8)
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
