Question: please fill in the code using masm16 assembly language and debug the code to fill in the values of the registers. Part 2 Adapt the
please fill in the code using masm16 assembly language and debug the code to fill in the values of the registers.
Part 2 Adapt the following code into an assembly program. Then fill out the empty spaces. x BYTE 4, 16, 100, -116, -68, -104, 125, 60, 99, 33, 55, 77 Y BYTE 2, 3, 4, 5, -6, -7, -8, -9, -10, 11, 12, 13 Q ;quotient = X/Y R ; remainder = X/Y ; Address of x is ; 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]/[i] ; Move quotient to Q[i] ; Move remainder to R[i] INC ESI LOOP L1 ;i++ ; 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} Part 2 Adapt the following code into an assembly program. Then fill out the empty spaces. x BYTE 4, 16, 100, -116, -68, -104, 125, 60, 99, 33, 55, 77 Y BYTE 2, 3, 4, 5, -6, -7, -8, -9, -10, 11, 12, 13 Q ;quotient = X/Y R ; remainder = X/Y ; Address of x is ; 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]/[i] ; Move quotient to Q[i] ; Move remainder to R[i] INC ESI LOOP L1 ;i++ ; 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
Get step-by-step solutions from verified subject matter experts
