00:01
Hello students, as the following assembly program for the arm 7tdmi processor counts the number of the negative integer in an array of 32 -bit sin.
00:14
So the integer using the stack to pass the argument as to subroute name as the negative count that is net count.
00:23
So the program utilizes the register from r0 to r3 for computation and the stack for storming return and addressing and also a scratch state register.
00:35
So as of here, you can look over here, there is an arm assembly code for the program that counts the number of the negative integer in an array.
00:44
So as this code initializes the stack pointer, so sets some variable and defines the subroute as the net of count.
00:54
So we are asked to perform the counting, so first of all we will start with an empty directory.
01:02
So with that, it utilizes this stack pointer to the top of the memory.
01:07
So adjust this as needed with your register number.
01:11
So later it loads the address of an array, then loads the number of an element into an array.
01:20
So into a register of r1 and r2 respectively.
01:24
Then it calls the net of count, the subroutine using the bl instructor.
01:30
So here the result will be as the r0 after subroutine call.
01:35
So the program hauls with the b instruction...