Question
Use c++ and assembly Suppose the operating system is using the bx register to store the following information bx: Bit# 16 15 14 13 12
Use c++ and assembly
Suppose the operating system is using the bx register to store the following information
bx:
Bit# | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
| 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 |
Bits 16,15,14 together are the number of printers connected to the computer (110=6)
Bits 12,11 together are the number of disk drives connected to the computer (11=3)
Bits 9,8,7 together are the size of memory (001=1G, 010=2G,011=3G, ,111=7G)
Bits 2,1 together are the number of terminals connected to the system (00=none, 01=1,10=2,11=3)
Us the content of the bx register to display the above information
Sample output:
Content of bx = 1100 1100 1100 0010
Number of printers are 6
Number of disk drives are 3
Memory size is 3G
Number of terminals are 2
Step 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