Chapter #4 Exercise Answer Question 4.2. Which interrupt is the first one to occur on Cortex-M based microcontroller? Ans: Reset interrupt is the first interrupt entry in the interrupt vector table Q# Which two operations are combined in CBZ assembly instruction? Question 4.9. What are pseudo assembly instruction? Are those executed at compile time or run time? Ans: LDR{type}{cond} Rt , label The LDR instruction, using the above-mentioned syntax, is called pseudo assembly instruction. This is due to the fact that it is converted to an equivalent PC-relative addressing based assembly instruction, during the compilation process. Executed at compilation time. Q# How is the AREA assembler directive used to create code or data sections in the memory? Ans: The AREA directive is used to instruct the assembler for a new code or data section. Sections are independent, named individually, and comprise indivisible chunks of code or data that are manipulated (control) by the linker. The general syntax for the AREA directive is given below. AREA sectionname {,attr}{,attr}... In the above expression sectionname is the name assigned by the user to a particular data or code section. Some of the section names are conventional. AREA Mydata , DATA , READWRITE ; Define a data section with section name Mydata Q#