CISC 225 NCC First Assembly and The C Program Question
First Assembly ProgramPlease see the attached C++ program, first.cpp. Write an assembly program that produces the same
results as the code in this program. In other words, you should allocate memory locations by the same
name and of the same type shown in this program, and carry out equivalent operations to change those
memory locations in the same way.
Note that the iostream library and cout statements are commented out. We have not yet seen
mechanisms to produce output in assembly programs. However, if you uncomment those parts of the
C++ program, you can see values of the variables.
When writing the assembly program, use the debugger to verify that the named memory locations
result in the same values that are produced by the C++ program.
Include comments in your assembly code to explain how you are implementing the equivalent C++
code. You might include a comment that includes the C++ statement just before your group of
instructions that carries out the equivalent assembly code.
When you turn in this assignment, download your Replit project as a Zip file and upload that file to the
assignment item on Blackboard. Do not copy the assembly source file and paste into the assignment
text box on Blackboard. Be sure to upload your Replit Zip file as an attachment.
long var1 = 15; // 32-bits
long var2 OxOA;
long var3 =
-7;
short var4 =
short var5
short var6 =
17; // 16-bits
-21;
0x31;
long long var7 = 1; // 64-bits
long long var 8 -5;
long long var9 = 15;
long long var 10; // uninitialized
//#include
int main() {
var1 += var2;
var3++;
var1 = (var1
4) + var3;
var4 += 20;
var5 -= –var4;
var6 = (var5 var6) + (var4
2);
var7 += (var8– + ++var9);
var 10
= var 7 + var8 + var9;
11
11
1
11
//
//
//
//
//
//
//
//
//
std::cout
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics