
Homework # 2 Solution
2.34!(a) 0111 (b) 0111 (c) 1101 (d) 0110
2.36!(a) AND with 11111011 (b) OR with 01000100 (c) AND with 00000000 (d) OR with
11111111 (e) AND the BUSYNESS pattern with 00000100 to isolate b2. Then add that
result to itself 5 times.
2.42"The ASCII values are being added, rather than the integer values. (ASCII โ5โ is 53 in
decimal, and ASCII โ8โ is 56 in decimal, adding to 109, which is ASCII โmโ.)
2.52!See the table:
2.54!See the table:
2.55"(a) 63 (b) 4n โ 1 (c) 310 (d) 222 (e) 11011.11 (f) 0100 0001 1101 1110 0000 0000
0000 0000 (g) 44m
3.6"C = Aโ; D = Bโ; Z = (C+D)โ = (Aโ+Bโ)โ = A . B"(jts xxx)
3.7"There's a short circuit (a path from power to ground) if A # B.
CS 350: Comp Org & Assm Lang Pgmg!Spring'09!HW 2
J. Sasaki, CS Dept"Page 1 of 3"Illinois Institute of Technology