Change the program so that it writes the sum

Assignment Help Computer Engineering
Reference no: EM132158969

Use MiniIDE and Wookie to do the following assignment:

Modify the "Example1.asm" program as follows. (Example1.asm is the example that copies a string from one place to another.)

First, replace the text string "Hello!" with the last 6 digits of your student ID number.

If your ID number is J00123456, replace "STRING1 DC.B "Hello!",$00" with "STRING1 DC.B $01,$02,$03,$04,$05,$06,$00".

If your ID number contains a 0, replace the 0 in the ID number with $0A. So if your ID number is J00120034, the string should read "STRING1 DC.B $01,$02,$0A,$0A,$04,$05,$00"

Second, rename the byte labeled "LEN" to "SUM."

Third, change the program so that, instead of copying the string, it adds up the string. So if your ID number is J00123456, you will wind up doing 1+2+3+4+5+6, and if your ID number is J00120034, you will wind up doing 1+2+10+10+3+4.

This generally means that you need to clear one of the accumulators (A or B) and then add each string element to it. Just like the original example, the program should stop adding when it reads a 0 (which is why you need to replace the 0 in your ID number with A.)

Fourth, change the program so that it writes the sum (the final answer after adding it all up) to the variable (label) named SUM.

Note that you do not need the Y register to do this assignment.

For full credit, you need to do the following:

Turn in printouts of the ".asm" and ".lst" files. (Please no tree-killing .S19 files!)

Turn in a screen capture of Wooike showing the MC68HC11 CPU window (the one labeled MCU) and the Browse Mem window (the one labeled Memory).

The Browse Mem window needs to show both STRING1 and SUM. The screen capture needs to be readable!

Reference no: EM132158969

Questions Cloud

Change your mind and choose box : You choose box #1. The man opens up box #3 which happens to be empty. He says you are that much closer to winning the prize
Provide the partition results as well as the number : Provide the partition results as well as the number of comparison and exchanges used.
What is the joint probability density function of the sample : What is the joint probability density function of the sample?
Write a new factorial function using pattern matching : Write a new factorial function using pattern matching which is tail-recursive (i.e. it doesn't cause the stack to grow and there are no pending operations).
Change the program so that it writes the sum : Fourth, change the program so that it writes the sum (the final answer after adding it all up) to the variable (label) named SUM.
Miles and the standard deviation : Suppose the mean of the sample was 15.2 miles and the standard deviation was 4.1 miles
Find a commercial tool that aids in the design : Many of the tools used to design databases are pictorial in nature. What are the benefits of this?
Mean number of a toner cartridge : In a random sample of 750 toner cartridges, the mean number of a toner cartridge can print is 4302 and the standard deviation is 340.
Find all possible r built-in functions related to normal : How to use R functions: search() and objects() to find all possible R built-in functions related to normal distribution.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write algorithm in pseudocode for square root primality test

Write an algorithm in pseudocode for the square root primality test. Write an algorithm in pseudocode for the Chinese remainder theorem.

  Determine the mid-point value

Analysis is designed to determine if the sheet manufacturing process is producing sheets of the material to the accepted specifications and determine the mid-point value (the value directly half-way between the max and the min) for each row and col..

  Questionprepare a complete tutorial including an analogy to

questionprepare a complete tutorial including an analogy to describe the mechanics and a graphic to support your

  Compute and print the average power output

Compute and print the average power output over this 10-week period. Print the number of days with greater-than-average power output.Also print the day of the week and the number of the week on which the output is greater-than-average.

  Create a crow foot erd using business rules

Create a Crow's foot ERD following the business rules for the ProdCo Company. Each sales representative writes many invoices.

  Trace the progression of physical modeling

Trace the progression of physical modeling throughout the development cycle of a system familiar to you.

  Integrate the research and analysis from the previous

one of the most common business tools during organizational assessment is the strengths weaknesses opportunities and

  How would you apply your new knowledge

Write a critical evaluation of your learning outcome. In your response, consider: Consider the content of this class as they relate to information management.

  List phases of ike and the goal of each phase

List phases of IKE and the goal of each phase. Define ISAKMP and its relation to IKE. List LSAKMP payload types and the purpose of each type.

  The propagation speed on the bus is 25x108 ms calculate the

assume you want to transfer a file containing 500000 bytes from one computer to another on a bus topology local

  Create a single view iphone project

Create a single view iPhone project that demonstrates the following skills, features, and functionality: Create a Single View iPhone project using Objective-C.

  Analyze all e-mail messages found in the pst file

Use FTK to analyze all e-mail messages found in the pst file. Find correspondence that supports the company's suspicions. The company wants a solid case, so showing the information was exchanged is important

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