Question: continued. Consider the following main-code fragment and the procedure SumThem: .DATA IntArray WORD 10,5,20,15,45,10 B WORD 20 C WORD 30 . CODE main PROC mov

continued.

Consider the following "main"-code fragment and the procedure "SumThem": .DATA IntArray WORD 10,5,20,15,45,10 B WORD 20 C WORD 30 . CODE main PROC mov ax,@data mov ds, ax ; (0) push \\[ IntArray \\]; (1) push \\[ IntArray +2\\]; (2) push \\[ IntArray +4\\]; (3) push 4 ; (5) call SumThem ; (6) add sp, 10 ; (9) Also, suppose the ADDRESS of this instruction is 3000h. mov ah, 4ch int 21h main ENDP ;- SumThem PROC NEAR push bp ; (7) Suppose bp value was 4000 . mov bp, sp mov cx,\\[bp+4\\]; Contents of cx : ; Just Before Pass 1: di= , ax= , cx= mov ax, cmpcx,; End of Pass 1: di= , ax= , cx= jmp le ExitProc mov di,6 ; End of Pass 2: di= Ill in values in the spaces above. If there is no value to be filled in, write None. Consider the following "main"-code fragment and the procedure "SumThem": .DATA IntArray WORD 10,5,20,15,45,10 B WORD 20 C WORD 30 . CODE main PROC mov ax,@data mov ds, ax ; (0) push \\[ IntArray \\]; (1) push \\[ IntArray +2\\]; (2) push \\[ IntArray +4\\]; (3) push 4 ; (5) call SumThem ; (6) add sp, 10 ; (9) Also, suppose the ADDRESS of this instruction is 3000h. mov ah, 4ch int 21h main ENDP ;- SumThem PROC NEAR push bp ; (7) Suppose bp value was 4000 . mov bp, sp mov cx,\\[bp+4\\]; Contents of cx : ; Just Before Pass 1: di= , ax= , cx= mov ax, cmpcx,; End of Pass 1: di= , ax= , cx= jmp le ExitProc mov di,6 ; End of Pass 2: di= Ill in values in the spaces above. If there is no value to be filled in, write None
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
