Write an ARM assembly language program in KEIL uVision IDE that does the following: 1. Reads following lists (This shoul
Posted: Sat Nov 27, 2021 2:35 pm
Write an ARM assembly language program in KEIL uVision IDE that
does the following:
1. Reads following lists (This should be a Subroutine calls)
List 1 = 100, 300, 200, 900, 100, 400, 500, 600, 400, 150
List 2 = 3, 5, 7, 8, 2, 4, 1, 3, 6, 9
2. Multiply corresponding elements in above two lists and copy
them somewhere in memory (This function must be a subroutine
call)
3. Find the average of the created list (The average function
must be a subroutine call)
4. Save the average somewhere in memory (This is a subroutine
call)
Notes:
-Use Stack for restoring the register values
- Use top of stack value 0x40000000
-Use Following stack store and Load
STMIA R13!,{...}
LDMDB R13!,{....}
does the following:
1. Reads following lists (This should be a Subroutine calls)
List 1 = 100, 300, 200, 900, 100, 400, 500, 600, 400, 150
List 2 = 3, 5, 7, 8, 2, 4, 1, 3, 6, 9
2. Multiply corresponding elements in above two lists and copy
them somewhere in memory (This function must be a subroutine
call)
3. Find the average of the created list (The average function
must be a subroutine call)
4. Save the average somewhere in memory (This is a subroutine
call)
Notes:
-Use Stack for restoring the register values
- Use top of stack value 0x40000000
-Use Following stack store and Load
STMIA R13!,{...}
LDMDB R13!,{....}