Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use C++ and assembly language to: The content of ax register representing a 16 story building ( 1st bit is first floor, 2nd bit is

Use C++ and assembly language to:

The content of ax register representing a 16 story building ( 1st bit is first floor, 2nd bit is the second floor,,16th bit is the sixteenth floor). A bits of the ax is on (=1) if the lights in that floor are all on, if ax=0110 1001 0010 0011 determine which floors lights are all on. If the 5th floor lights are not on, turn them on

Sample output:

ax= 0110 1001 0010 0011

Lights are on at floors: 1 2 6 9 12 14 15

ax register after turning the 5th floor light on : ax=0110 1001 0011 0011

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_2

Step: 3

blur-text-image_3

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions