Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please answer everything for a thumbs up :) print d[3] and print first five elem

ID: 3860321 • Letter: P

Question

Please answer everything for a thumbs up :)

print d[3] and print first five elements of d

14. (0.5 each) You are writing an interrupt service routine and want to use all registers inside of it. Circle the minimum set of registers you must save before using them EDX EAX EBX ECX ESI ED BP SP 15. (0.5 each)For each of the following steps in the servicing of an interrupt mark whether it is the hardware or the OS doing the work. OS HardwareOS The Interrupt Descriptor Table was filled out. The Interrupt Descriptor Table Register was pointed to the beginning of the Interrupt Descriptor Table The I/O device asserts the interrupt line The CPU asserts the interrupt acknowledge line The I/O device sends its interrupt request number The CPU saves the flags register, the PC, and the CS register The CPU jumps to the appropriate interrupt handler The interrupt is actually serviced. Hardware OS Hardware os HardwareOS Hardware OS Hardware oS Hardware OS

Explanation / Answer

EDI:destination index register used for string ,memory array copying and setting and for pointer adressing with ES

ESP:stack pointer register holds the base adress of the stack

EBP:stack base pointer register holds the top adress of the stack

HARDWARE means that over all interrupt works are done by hardware,hardware means all physical parts of the computer

OS means operating system main feature of the computer

program :

DATA SEGMENT

DATA ENDS

CODE SEGMENT

Assume DS:DATA;CS;CODE

START :

MOV AX ,DATA

MOV DS ,AX

MOV BL,00H

MOV CH,00H

MOV CL,0AH

L1:MOV DH,00H

MOV DL,BL

ADD DL,'0'

MOV AH,02H

INT 5H

INC Bl

LOOP L!

MOV AH,4 CH

INT 5H

CODE ENDS

END START

OS