Question: I need help programming this code in C++ ASSEMBLY LANGUAGE . I need help ASAP. Thank you. By Assembly Language, I mean this following format:

I need help programming this code in C++ ASSEMBLY LANGUAGE. I need help ASAP. Thank you.

By Assembly Language, I mean this following format:

#include

using namespace std;

//any voids

void ...()

{

}

// any varibles

int/short variable_n

int main ()

{

_asm

{

... Assembly Code

}

}

I can NOT use a for, while, do-while loop nor can I use if-else statements. I must use the asm format above.

3. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!