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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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