Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Write an assembly language program for ARM Cortex M 3 / 4 to handle Supervisor Call ( SVC ) exception. The program should meet the

Write an assembly language program for ARM Cortex M3/4 to handle Supervisor Call (SVC) exception. The program should meet the following requirements:
The SVC 34(in decimal) should be called from an application task running at Thread unprivileged Mode.
Two parameters that is (decimal number)01234 & 01234 should be passed to the SVC handler through R1 &
R2 Register.
3. The SVC number should be determined dynamically by examining the actual SVC instruction in memory.
4. The SVC exception handler hould set up a stack pointer in SVC mode before handling the exception.
5. If the SVC number 34 then handler should perform addition of the two passed parameters.
6. If the SVC number does not match 34, then handler should perform subtraction of the two passed parameters.
7.Ensure that the program properly handles stack usage and resumes the application task after performing the required operation.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students explore these related Databases questions

Question

The Nature of Nonverbal Communication

Answered: 3 weeks ago