Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribedPlease 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 RAM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 1 Lnai 6321

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215879X, 978-3642158797

More Books

Students also viewed these Databases questions

Question

Why is the matching principle important?

Answered: 1 week ago

Question

b. What is the probability of winning? Pg45

Answered: 1 week ago