Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

6. I feel more experienced about life now.

Answered: 1 week ago

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago