Question: Please fill in code in MASM16 Assembly. Mainly work on Part 5. X Y Part 2: Adapt the following code into an assembly program. Then

 Please fill in code in MASM16 Assembly. Mainly work on Part5. X Y Part 2: Adapt the following code into an assembly

Please fill in code in MASM16 Assembly. Mainly work on Part 5.

X Y Part 2: Adapt the following code into an assembly program. Then fill out the empty spaces. BYTE 4, 16, 100, -116, -68, -104, 125, 60, 99, 33, 55, 77 BYTE 2, 3, 4, -5, -6, -7, -8, -9, -10, 11, 12, 13 ;quotient = x/Y remainder = X/Y R ;Address of xis Address of Y is ; Address of Q is ; Address of Ris MOV ESI, 0 MOV CX, ;use ESI and index to arrays ; counter for loop Ll: ; Setup numerator, N[i] ; divide N[i]/Y[i] ; Move quotient to Q[i] Move remainder to R[i] INC ESI LOOP L1 ; Loop back until end of array Part 5: Modify the program in part 2 for the following X, Y arrays X = {20012, 30023, 40045, 50056, 60067, 70078} Y = {400, 1600, 10000, -11600, -6800, -10400} X Y Part 2: Adapt the following code into an assembly program. Then fill out the empty spaces. BYTE 4, 16, 100, -116, -68, -104, 125, 60, 99, 33, 55, 77 BYTE 2, 3, 4, -5, -6, -7, -8, -9, -10, 11, 12, 13 ;quotient = x/Y remainder = X/Y R ;Address of xis Address of Y is ; Address of Q is ; Address of Ris MOV ESI, 0 MOV CX, ;use ESI and index to arrays ; counter for loop Ll: ; Setup numerator, N[i] ; divide N[i]/Y[i] ; Move quotient to Q[i] Move remainder to R[i] INC ESI LOOP L1 ; Loop back until end of array Part 5: Modify the program in part 2 for the following X, Y arrays X = {20012, 30023, 40045, 50056, 60067, 70078} Y = {400, 1600, 10000, -11600, -6800, -10400}

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!