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. I also need to use arrays for this question.

There are 16 sprinklers watering the football field. Each bits of an ax register indicates whether a sprinkler is on (=1) or off (=0). Write an assembly program to do the following: a. Display the content of ax register at base 2 b. Determine how many sprinkles are off c. Display whether the sprinkler number is 9 on or off? d. Sprinklers number 11,12 , and 13 together are watering the middle of the field. Determine whether all three of them are on or not (hint, all three are on if their decimal value of bits 11,12 , and 13 together is 111 or 7 )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
