Question: 6. Write a subroutine that takes 8 integer arguments and computes the product of these integers Note extra arguments are passed to the subroutine via

 6. Write a subroutine that takes 8 integer arguments and computes

6. Write a subroutine that takes 8 integer arguments and computes the product of these integers Note extra arguments are passed to the subroutine via the stack r1,#8 ; 8th argument r0,#7 ; 7th argument main: MOV MOV PUSH fre,rl} ; rl is pushed first MOV MOV PUSHfre,r1) MOV MOV MOV MOV BL sum 8 B stop r1,#6 ; 6th argument r0 , #5 ; 5th argument r2,#4 ; 4th argument r3,#3 ; 3rd argument r1,#2 ; 2nd argument r0 , #1 ; 1st argument @ToDo complete sum8 subroutine sum8: stop: 6. Write a subroutine that takes 8 integer arguments and computes the product of these integers Note extra arguments are passed to the subroutine via the stack r1,#8 ; 8th argument r0,#7 ; 7th argument main: MOV MOV PUSH fre,rl} ; rl is pushed first MOV MOV PUSHfre,r1) MOV MOV MOV MOV BL sum 8 B stop r1,#6 ; 6th argument r0 , #5 ; 5th argument r2,#4 ; 4th argument r3,#3 ; 3rd argument r1,#2 ; 2nd argument r0 , #1 ; 1st argument @ToDo complete sum8 subroutine sum8: stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!