Professional Documents
Culture Documents
c) Private Peripherals
d) Processor
2. Cortex-M3 allows total __________ simple linear memory.
a) 4GB
b) 8GB
c) 32GB
d)
16GB
3. Each Assembly Instruction for Cortex-M might contain ____ fields, among
them ____ fields are optional.
a) 5, 2
b) 4, 1
c) 3, 4
d)
4, 3
4. Choose the instruction which will be 16-bit encoded by compiler.
a) ADDS R2, #365
d)
All of them
instructions
per instruction
the clock
R 2=R 3+ R 4
Ans: _____________________________________________
9. Write Equivalent assembly instruction for
R 0=R 3+ R 4R 5
Ans: _____________________________________________
10.Write Equivalent assembly instruction for
R 1=R 4 2
Ans: _____________________________________________
11. A number is given in register R0. Write a code to find that whether the number can be
presented as the nth power of 4. If it can, then provide the power also?
Page 1 of 2
12. Write a code to test a given number in R1, whether it is zero, positive or negative. Based
on the result write 0, 1 or -1 in R2 if given number in register R1 is zero, positive or
negative respectively?
Page 2 of 2