Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write in assembly code including the C++/C code! 1. An interrupt is a signal sent by device to CPU to indicate need for service.
Please write in assembly code including the C++/C code!
1. An interrupt is a signal sent by device to CPU to indicate need for service. When an interrupt occurred, the AX register will hold the following information 1 6 1 5 1 4 1 3 1 2 1 1 1 0 9 8 7 6 5 4 3 2 1 Bit 1 : blank Bit 2 : 1 if math coprocessor installed, 0 otherwise Bits 3,4 : 00=16GB RAM, 01=32GB RAM, 10=48GB RAM and 11 =64GB RAM Bits 5,6 :00 Bits 7,8 : number of floppy drives plus one( 00 = one derive) Bit 9 Bits 10, 11,12: number of ports installed Bit 13 : 1 if game adaptor is installed, 0 otherwise Bit 14 : 0 Bit 15,16 : number of printers installed(00= 0 printer, 01= 1 printer, ....) :0 Suppose the content of AX register is 1100 1110 1001 1100 (i.e mov ax, 1100 1110 1001 1100b). Write an assembly program to determine: a. The number of printers connected to the computer b. The number of floppy drives c. The size of the RAM 1. An interrupt is a signal sent by device to CPU to indicate need for service. When an interrupt occurred, the AX register will hold the following information 1 6 1 5 1 4 1 3 1 2 1 1 1 0 9 8 7 6 5 4 3 2 1 Bit 1 : blank Bit 2 : 1 if math coprocessor installed, 0 otherwise Bits 3,4 : 00=16GB RAM, 01=32GB RAM, 10=48GB RAM and 11 =64GB RAM Bits 5,6 :00 Bits 7,8 : number of floppy drives plus one( 00 = one derive) Bit 9 Bits 10, 11,12: number of ports installed Bit 13 : 1 if game adaptor is installed, 0 otherwise Bit 14 : 0 Bit 15,16 : number of printers installed(00= 0 printer, 01= 1 printer, ....) :0 Suppose the content of AX register is 1100 1110 1001 1100 (i.e mov ax, 1100 1110 1001 1100b). Write an assembly program to determine: a. The number of printers connected to the computer b. The number of floppy drives c. The size of the RAMStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started