I want to write ARM assembly language using Keil . Please see below for more information
? Task 1: .
Write an optimal assembly language program to implement the following for an ARMv4 based LPC2378 microcontroller.
After processor reset, write suitable instructions to enable FIQ, IRQ interrupts and switch the processor to user mode. In user mode use supervisor call instruction SWI 0x1234.
The SWI Handler checks if the call number (24-bit immediate value) is 0x1234. Only if the call number is 0x1234 the swi exception handler copies 20 sequential, 32 bit data stored in ROM memory to sequential RAM locations. The starting address of ROM (from where 20 , 32 bit data needs to be copied) and RAM (where 20 , 32 bit data will be stored) will be passed to SWI_handler via registers R0and R1 respectively( R1 and R0 will be loaded in user mode).
The processor should also return to the User mode after exception handling. SWI instruction code format is given below.