Question: 2. A Microprocessor is an important part of a computer architecture without which you will not be able to perform anything on your computer.


2. A Microprocessor is an important part of a computer architecture without which you will not be able to perform anything on your computer. It is a programmable device that takes in input performs some arithmetic and logical operations over it and produces the desired output. a. Your task is the Identification of the different types of microprocessor and their applications. Also write down why these applications required microprocessor. 4. subroutine (10 pts) [MSP430 Microcontroller Basics, section 4.6] a. When a subroutine is called, what happens to the stack? b. What would happen if a subroutine changes the top value of the stack? c. What instruction enters a subroutine? d. What instruction returns from a subroutine? e. How do you pass parameters to a subroutine? .text mov.w mov.w mov.w push.w push.w call pop.w pop.w jmp add.w add.w ret #1, R10 #4215h, R8; data 1 #38A6h, R9; data 2 ending: jmp R8 R9 #subroutine subroutine: ; subroutine adds value in R10 to data values on stack R10,2 (SP) R10,4(SP) R9 R8 ending ; infinite loop to end program f. In this program, why are 2(SP) and 4(SP) used to address the values on the stack? g. In this program, how were parameters passed to the subroutine?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
