Question: 'computer org and assembly language' please solve this questions urgently. I just need correct answers/options. URGENT! Thanks... estion 7. The following fragment of code is
estion 7. The following fragment of code is used to calculate the sum of positive elements in the array vect ward format) and store the result in memory word R. Write one missing instruction to compare value of the irrent element) in the box below vect dw 1, 2, 3, 4, 5, 6, 7, 8 0 dw array given mov ecx, 8 movesi, o movax, O : initial loop counter value : initial index value : initial sum value jle next add ax, vect(osi) next: addesi, 2 loop mov R, ax : conditional jump ; add the value of the current element of the array to sum ; increase index value (element size is 2 bytes) ; store the result Question 8. Execution of the LOOP instruction causes changes in (circle one correct answer A. the stack pointer register ESP. B. the ESI and EDI registers. C. the EAX register. D. none of the above. Question 9. Interrupt caused by the execution of the instruction int 10h in the user's code can be masked (circle one correct answer): A. by setting mask OFFh for the instruction test, i.e. test al, OFFh B. by writing the value 20h to port 20h, i.e. indicating "End of Interrupt" state for Programmable Interrupt Controller C. by execution of the instruction iret to return from an Interrupt Service Routine (ISR). D. It is not possible to mask this software interrupt. Question 10. Doubleword alpha is defined. What will be the internal hexadecimal code of the AH register after execution of the following instruction mov. alpha dd 15 mov ah, byte ptr alpha ANSWER (hexadecimal value - two digits): D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
