Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How can I do this program in ASSEMBLY LANGUAGE ? #include using namespace std; void main () { unsigned long i1; unsigned long i2; unsigned

How can I do this program in ASSEMBLY LANGUAGE ?

#include using namespace std; void main () { unsigned long i1; unsigned long i2; unsigned long i3; unsigned long i4; _asm { } cout << "results are " << (unsigned long) i1 << ", " << (unsigned long) i2 << ", " << (unsigned long) i3 << ", " << (unsigned long) i4 << endl; } Set i1 and i2 to each have a value of 1. Create a loop that will do the following for each iteration of the loop: 1) Add 3 to i1 and store the result into i1; 2) Multiply i2 by 3 and store the result into i2; Terminate the loop if either i1 becomes greater than 100 OR if both the following are true: more than 15 iterations of the loop have occurred AND i2 has reached a value of at least 999999. After the loop terminates do the following: 1) Set i3 to the number of times through the loop 2) Set i4 to the remainder of i1 divided by i3

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago

Question

Discuss the Hawthorne experiments in detail

Answered: 1 week ago

Question

Explain the characteristics of a good system of control

Answered: 1 week ago

Question

Focuses strongly on achievement and success in self and others.

Answered: 1 week ago