Machine language used by sim virtual computer simulator

Assignment Help Programming Languages
Reference no: EM1350090

Q1) You have to write a program in the machine language used by the SIM virtual computer simulator package to compute the sum of the four numbers stored in memory addresses A1, A2, A3 and A4. First, you introduce four hexadecimal numbers in 2's complement notation in the corresponding addresses; your program must get these numbers, calculate the sum of all the numbers and store the result of the addition at memory location A5. est Data and Results Run your program with different set of numbers positive and negatives. See below two examples of what you need to do to create your test data:

Decimal numbers Hexadecimal Numbers Operation Expected Result Actual Result (result obtained by the SIM program) 20, 30, 10, 15 14, 1E, 0A, 0F 20+30+10+15 = 75 4B 2, -5, 7, -12 02, FB, 07, F4 2-5+7-12=-8 F8

Reference no: EM1350090

Questions Cloud

Computing cost of building : Janel Co acquired a building valued at $120,000 for property tax purpose in exchange for$8,000 shares of its 5 par common stock. The stock is selling for $15 per share. At what amount should the building be recorded by Janel Co.?
Explain how re-writing your goals in s.m.a.r.t : Write summary of Explain how re-writing your goals in S.M.A.R.T. goal format changed the way you look at the goals.
Encode audio data in two packets : How might you encode audio (or video) data in two packets so that if one packet is lost, then resolution is simply decreased to what would be expected with half bandwidth?
Human personality is a product of nature : In a group discussion someone argues "that human personality is a product of nature, you're born with a certain personality type, it stays the same throughout your life, and there is little that nurture or environment can do to change that"
Machine language used by sim virtual computer simulator : Write a program in machine language used by the SIM virtual computer simulator package to calculate the sum of the four numbers stored in memory addresses A1, A2, A3 and A4.
Explain developing countries and how they differ : Explain developing countries and how they differ from industrial market economies and How can international trade aid development
Description of variable cost : If a company sells a product at $60.00 per unit that has unit variable costs of $40.00 The co break-even sales volume is $120,000 How much profit will the company make if it sells 4,000 units? Please explain.
Effective techniques in preventing or resolving conflict : What are at least two effective techniques in preventing or resolving conflict
Core social motives to predict individual behavior : Finally, explain one way you might use core social motives to predict individual behavior within your current field or your field of interest.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd