COEN 920c
Homework #6
SOLUTION
Winter 2016
You should also review past homework sets since the final exam is comprehensive.
1. Write the corresponding ARM Assembly code, as compactly as possible, for the given C code
unsignedlonglongintu64;
signedlonglong

Name: _SOLUTION_
QUIZ #2
COEN 920c (W16) (34 pts)
(Instructions: Show Work; Neatness counts. Code problems must be written as CONCISELY as possible)
1. There are 3 general memory addressing modes for the ARM Cortex-M3. Circle the correct modes below.
(1 e

COEN 920c
Homework #4
Solution
Winter 2016
1. Which part of the computer puts information on the Address Bus?
a. Main Memory
b. CPU
c. ALU
2. How many address lines are required for a memory containing a total of
a. 256 KB
=> 218 = 256 KB => 18 lines
b. 4

COEN 920c
Homework #5
SOLUTION
Winter 2016
1. Write the corresponding ARM Assembly code, as compactly as possible, for the given C code
unsignedlonglongintu64;
signedlonglongints64;
a
u64+=s64;
LDRDr0,r1,u64
LDRDr2,r3,s64
ADDSr0,r0,r2
ADCr1,r1,r3
STRDr0,r

COEN 920c (Winter 2016)
(25 pts)
Name: _SOLUTION_
Show how you arrived at your answers to receive credit for your answer, where a calculation is required.
1. Answer True (T) or False (F), whichever most correctly answers the question. (5 pts)
_F_ Assembly

1.
What is the decimal value represented by the binary number 110011012 when
interpreted as:
a)
b)
2.
A sign+magnitude number?
A two's complement number?
-5110
110011012 = -10011012 = -7710
110011012 = -001100112 =
What is the 2s complement 8-bit represen

COEN 020
Homework #3
(Solution)
Summer 2010
1. Determine the decimal (not binary!) value that results from evaluating each of the following C expressions: ;
COEN 020
a. !0 = 1
b. !5 = 1
c. 13 <4 =
208
Homework #3
(Solution)
d. 55 > 2 =
13
e. ~0 = -1
f. ~5

COEN 920c
Homework #1
Solution
Winter 2016
1. Ch 1Text Problem 8
(d) One processor is executing different threads concurrently.
Similar is (a) Multiple processors are executing different threads
simultaneously, which is called multiprocessing.
2. Ch 1Text