Page 1 of 8
Page 1 of 8
TEST #1 Makeup
October 6, 2016
Name:_________________________________
UNT ID#:______________________________
INSTRUCTIONS
Attempt each problem even if you are not sure about your
solution.
You have 1 hour and 20 minutes: 11:30 AM 12:50 PM
You will have full access to the course (Blackboard) web site
during the test but you are not allowed to access web sites
other than the ones in Blackboard.
You are NOT allowed open textbooks or notes.
During the test the use of electronic devices such as cell
phones, smart phones, smart watches, pagers, photographic
devices and/or other electronic or communication devices is
strictly prohibited. Such devices must be turned off during
the tests.
Page 1 of 8
11.
12.
13.
14.
15.
Page 2 of 8
Page 3 of 8
in hex (make sure you use the correct number of digits AND
extension) the equivalent of these bit patterns:
00
________
110010
________
0010
________
11110011 ________
5) Show in binary
numbers:
a. 0xFF
b. 0xA
c. 0x1A
d. 400
Page 4 of 8
Page 5 of 8
ADD
R3, R3, R2
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
SUB
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
Hint: DO NOT use the Keil IDE. The assembler performs internal
optimizations and you will not see what you expected.
Page 6 of 8
Page 7 of 8
R0, [R1]
R2, [R1]
Page 8 of 8