Print out a one and the sum of the negative integers

Assignment Help Computer Engineering
Reference no: EM132193563

Write an assembly language program to do the following, and run it and test it on the lab simulator:

Read in integers until a zero is read in. Keep a total of both the quantity and the sum of the negative integers and the positive integers. Once a zero is read in (signifying the end of the input) then:

If there were more positive than negative integers, or an equal number, print out a 0 and the sum of the positive integers.

If there were more negative than positive integers, print out a 1 and the sum of the negative integers.

Hand in your answer to this question as

1. A screen shot of the lab assembler program once your program has been assembled successfully, showing that it assembled successfully.

2. A complete separate print-out of your source code with comments, as it may not all be visible in the assembler simulator window.

3. Screen shots of the von Neumann assembler execution window after execution of your program executed with some sample data, for both situations (more negative integers, and more positive integers).

4. The sample data you used to test the program in both situations.

Note that you can resize both windows by "pulling" on the corners until all of your code is visible.

Reference no: EM132193563

Questions Cloud

A program which waits for the user to press the start button : Write an assembly language program which waits for the user to press the start button, which will start the coffee brewing, which is indicated by the red light.
Would the cultural change destroy the company soul : Should company go about changing the corporate culture from one of informal processes to a focus on strategic planning? Would this cultural change destroy.
Lawsuit against katy perry for breach of contract : On what legal basis might your sister file a lawsuit against Katy Perry for breach of contract?
Write an array-returning method that takes a 2d array : Write an array-returning method that takes a two-dimensional array of ints as a parameter and returns a two-dimensional array of chars.
Print out a one and the sum of the negative integers : A screen shot of the lab assembler program once your program has been assembled successfully, showing that it assembled successfully.
How companies use the web to connect with customers : Students will select an article from their independent readings, which must be recent. The article must be scholarly and relate to selling on the web.
Write an arduino code which changes the rate of an led blink : Write an Arduino code which, by different values/positions of a potentiometer input device, changes the rate of an LED blinking.
Explain the functions of the utilization management nurse : Explain the functions of the utilization management nurse and compare and contrast the I information from that organization
A program that counts the number of 1s for any value in r0 : Write an ARM assembly language program that counts the number of 1's for any value in R0.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are the language standards

What are language standards? At this point in your study of programming, what do they mean to you?

  Explain what is an affiliate program

Describe what is an affiliate program, and how it works. explain the advantages and disadvantages of using an affiliate program. Give some examples of successful affiliate programs.

  Compare the role of share and ntfs permissions

"magz64"- Compare and contrast the role of share and New Technology File System (NTFS) permissions, and the manner in which an administrator uses them in order to secure resources (i.e., files, folders) on a computer.

  Build a word document listing the software

The scenario is that you do volunteer work for the small, self-funded community support group. With very little money available, the group has been unable to computerize its operations.

  Describe concerns with properly controlling the given flow

Describe concerns with properly controlling this flow, including keeping it safe from unauthorized use.

  Distinguish between static and dynamic dataflow computers

Distinguish between static and dynamic dataflow computers. Draw a dataflow graph showing the computations of the roots of a sequence of quadratic equations Ax?

  How can you divide the screen into quadrants

How can you divide the screen into quadrants and Is the process called as 'viewing transformations'

  Which of the four transformations defined for aes change

Which of the four transformations defined for AES change the contents of bytes? Which one does not change the contents of the bytes?

  Explain the difference between the http actions get and post

Explain the difference between the HTTP actions GET and POST. Which is more vulnerable to SQL injections? Provide an example to support your statement.

  Create a class named tape that includes fields for length

Create a class named Tape that includes fields for length and width in inches, and create get and set methods for each field.

  Describe in more detail about the step for building lexical

It uses regular expressions, defining token kinds, finite automata, and programming to simulate the finite automaton involved.

  Corporate espionage offenders who are so-called insiders

Describe the main similarities and differences between corporate espionage offenders who are so-called insiders

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