SuddenTest Solution
SuddenTest Solution
SuddenTest Solution
1. Abbreviate the terms: (i) IBM, (ii) CISC, (iii) DARPA, (iv) ARM, (v) NPU
2. What is the value of Zero (Z) flag after the instruction: SUB AX,AX
• (i) Set (ii) Cleared (iii) Unknown (iv) None of the above
3. If you add positive number plus negative number the over flow flag will be set if:
• (i) The result is negative (ii) The result is positive (iii) The result is zero (iv) There
is no over flow when adding ( ve) (-ve) numbers
6. When the processor is executing in ARM state, then all instructions are ˙˙˙˙˙˙˙˙˙˙˙˙˙˙ wide
• (i) RISC (ii) CISC (iii) Both (i) and (ii) (iv) None
9. The branch with link, software interrupt, and general branch instructions are the ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙
instructions
1
Assignment 03 Computer Science & Engineering, University of Dhaka page 2
• (i) 8-bit signed & unsigned (ii) 16-bit signed & unsigned (iii) 32-bit signed & unsigned
(iv) All of the above
• (i) Nested Vectored Internal Controller (ii) Nested Vectored Interface Controller (iii)
Nested Vectored Interrupt Controller (iv) None of the above
12. The ARM and thumb instruction set and java byte codes are ˙˙˙˙˙˙˙˙˙˙˙ instruction set
• (i) ARM Program Status Register (ii) Application Program Status Register (iii)
Advanced Program Status Register (iv) Anonymous Program Status Register
• (i)Little Endian (ii) Big Endian (iii) X-Little Endian, (iv) Both (i) & (ii)
• (i) Data Watchpoint and Trace Unit (DWT) (ii) FPU (iii) NVIC (iv) Systick
Timer
21. Mention the content of the registers after the execution of the instruction POP R4
• Answer: R4=memory[R13]
R13=R13+4
Assignment 03 Computer Science & Engineering, University of Dhaka page 3
22. Mention the content of the registers after the execution of the instruction
0x1012 : MOV R0, PC .
• Answer: R0=)x1016
23. Write down the set of instructions to disable all exceptions except NMI and Hard faults.
• Answer:
MOVS R0, #1
MSR PRIMASK, R0