Question: Assembly Programming Question: Add code so that the program additionally prints out sum of elements in the two vectors. The printout should be like this:

Assembly Programming Question:

Add code so that the program additionally prints out sum of elements in the two vectors.

The printout should be like this:

The in product is 62!

The sum is 40!

Assembly Programming Question: Add code so that the program additionally prints outsum of elements in the two vectors. The printout should be like

! This program multiplies two vectors It shows a subroutine with arguments and ! a local variable. See section 9.8.3 EXIT = 1 PRINTF = 127 SECT . TEXT inpstart: MOV BP, SP PUSH vec2 PUSH vecl MOV CX, vec2-vecl !8 SHR CX,1 PUSH CX CALL vecmul MOV (inprod),AX 12 PUSH AX PUSH pfmt PUSH PRINTF SYS ADD SP, 12 PUSH0 PUSH EXIT SYS ! 20 vecmul: ! 22 ! 23 PUSH BP MOV BP, SP MOV CX, 4 (BP) MOV SI, 6 (BP) MOV DI, 8 (BP) PUSH0 ! 25 ! 26 ! 27

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!