Assignment 2, due Jan 31
Part of
the homework for 22C:60 (CS:2630), Spring 2014
|
On every assignment, write your name legibly as it appears on your University ID card! Homework is due on paper at the start of class on the day indicated (usually Friday). Exceptions will be made only by advance arrangement (excepting "acts of God"). Late work must be turned in to the TA's mailbox (ask the CS receptionist in 14 MLH for help). Never push homework under someone's door!
W #756E614A H 8#071141 B 4#1321 B 4#0201
a) Convert the operand on each of the above SMAL directives to binary, using correct SMAL syntax for binary numbers. (0.5 points)
b) Convert it to an equivalent series of 8 SMAL B (byte) directives, one per byte, expressing the value of each byte in binary. Warning: Check the first sections of Chapter 3 to get this right. (0.5 points)
c) Convert the result of part B to a single SMAL ASCII directive. Hint: The character string is readable English. (0.5 points)
a) –100
b) +100
c) –1
d) +50
e) –75
a) –99
b) +99
c) –0
d) +49
e) –74
a) 01011101
b) 11100010
c) 01101010
d) 11110011
e) 01111011