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

  Explaining handles clause of sub procedure

You are asked to design a form with a textbox named txtQty, a label named lblStatus, and a button named btnGetStatus. What will be Handles clause at the end of sub procedure?

  Explaining steps to execute branch instruction

Sketch a flow chart which carefully explains steps that little man follows to execute a branch instruction.

  Scripting language programming in perl

course Scripting Language Programming,  Assignment   -  Perl,  ? Your coding style should conform to general Perl coding conventions. Your scripts should be clean, neat, and well-formatted (e.g. indention). Identifiers should also be properly name..

  Program to print total balances forward and total withdrawal

At the end of report, print total balances forward, total deposits, total interest earned, total withdrawals and total final account balances.

  Program for insertion sort and selection sort algorithms

Write a program involving the insertion sort, merge sort and selection sort algorithms.

  Explain the interaction framework

Explain the Interaction Framework discussed by Steven Heim (2008). Choose a computing device (like an ATM machine or the self-check-out at a grocery store

  Program to find real solutions

Method, which determines whether value of "b squared" - 4ac is negative. If negative, code then  prints out message "no real solutions" and returns from method.

  Writing code in client program to enter score

Write down code in a client program to perform the following: prompt user to enter score and set score data member for player1.

  Basic user interface-accept multi-level menu driven modules

Use any programming language or package to design basic User Interface which will be able to accept multi-level menu driven modules. Password should not be displayed.

  Computing average net profit per sale of product

Your company bought 250,000 online advertising impressions and made average net profit per sale of product of $5.

  Program to enter answer to a math problem

Write a program which ask student to enter an answer to a math problem. The user must enter two values, one at time, and then ask for answer.

  Program to generate a random number between a range

Write down a program to generate random number between 1 and 100 and asks user to guess what number is.

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