2 the marie simulatorthe marie simulator is provided as a

Assignment Help Computer Engineering
Reference no: EM13348001

2. The MARIE Simulator

The MARIE simulator is provided as a zip file containing Java archives (*.jar) files, documentation, and example source files. Unzip the file to a directory for use. Do the following to become familiar with the MARIE simulator.

  • Read "A Quick Start Guide for the MARIE Machine Simulator Environment" (QuickGuide.pdf provided in the zip file).
  • Depending on how comfortable you are with using the MARIE simulator after reading the quick start guide, you may also wish to read "A Guide to the MARIE Machine Simulator Environment" (MarieGuide.pdf provided in the zip file).
  • Review the example assembly language source files and experiment with the MARIE simulator using these examples. The Ex4_1.mas example is likely the most relevant to this assignment.

You are to use the MARIE simulator (MarieSim.jar) to complete this project. You will not be using the data path simulator (MarieDP1.jar). Also, note that the Marie simulator requires Java version 5 or later to be installed on your computer.

3. Design Specification

You are to design, write, test, and debug a MARIE assembly language program that counts the number of instances of a particular value in a set of words.

A template source code file (Project-2_Start.mas) is provided with this assignment. Edit this file to meet the program specifications. Note that the template includes instructions to initialize some working values that your program can use. The template also defines memory locations. You may add data memory locations, but it is not necessary to do so.

For full credit, your solution must perform the required function and must satisfy the following requirements.

a) The first instruction of the program must be placed at location (address) 0x100 (100 hexadecimal) in MARIE's memory. This is accomplished by following the program template that is provided.

b) The constant data values (One, Words, Key, and Base) should not be changed by the program. The program can load from these memory locations, but should not store to them. The array of word values that are to be processed by the program should be in successive memory locations beginning at location Array as indicated in the template file. The program should not change any of the data values in the array. These values should all be "hard-coded" into the program. Note that you will need to set the value in location Base depending on where the assembler places the array, as indicated in the listing file.

c) The program should always initialize the values for Cnt, Ptr, and Match in the working data memory and not rely on the values for these locations that are defined in the assembly source file. This initialization is done by the provided template file.

d) The program should work for any value in location Words and Key and for any set of values in the array of words, not just those provided in the template file. The value in location Words must be greater than or equal to 1. Test the program with some different values.

e) The program must place the final value for the count of matching words in location Match.

f) The program must use a loop and indirect addressing to access the values in the array of words.

Note that variables Ptr, Cnt, and Match are initialized in the template code and should be used in the loop.

Note that one solution for the project requires about 15 additional instructions to implement the correct loop. If you find that you are using significantly more instructions than this, you should reconsider your design and, as needed, consult with the GTA and/or instructor.

4. Testing

Test and debug the program using the MARIE simulator (MarieSim.jar). Debug the program using the "Step" function in the simulator. You must test your program with the following three test cases.

Test 1: Use the values for Words, Key, and the word array that are specified in the template file, assemble, and test.

Test 2: Change the value of Key to be "0000" (instead of "00AA") and change the value of Words to be decimal "10" (instead of "30"), reassemble, load, and test.

Test 3: Change the values of Key and Words and at least some of the values in the word array to values of your choice, reassemble, load, and test.

When you create your source file within MarieSim (using the File > Edit menu pick), use file name lastname_firstname_p2.mas, where "lastname" is your last or family name and "firstname" is your first or given name. You can assemble your source file in the editor program. The assembly process creates a listing file (lastname_firstname_p2.lst) and an executable file (lastname_firstname_p2.mex). Load the executable file into the simulator for execution.

Reference no: EM13348001

Questions Cloud

Discuss the key issues management requires to consider in : discuss the key issues management requires to consider in deciding whether to support an in-house r amp d function or
Prepare a businesspartner class that contains a company : prepare a businesspartner class that contains a company name first name and a telephone number. prepare a contacts
Problem 1 let fr-gtr be a function fxx if xgt0 x-1 if : problem 1 let fr-gtr be a function fxx if xgt0 x-1 if xlt0evaluate whether f isa u-u continuous.b c-c
Part a you have been asked to check grand plomp ltd a maker : part a you have been asked to check grand plomp ltd a maker of rocket widgets employed by nasa. the owners are
2 the marie simulatorthe marie simulator is provided as a : 2. the marie simulatorthe marie simulator is provided as a zip file containing java archives .jar files documentation
Prepare a pipe network system that transfers water from the : prepare a pipe network system that transfers water from the upper pipe to the lower pipe. note that figure is a plan
Communicationa significant distinction between online and : communicationa significant distinction between online and face-to-face classes lies in the area of
A pressurized water tank is used as a source of water for a : a pressurized water tank is used as a source of water for a fire hose. the pressure of the air in the top of the tank
Question 1 explain whether the following transactions are : question 1 explain whether the following transactions are counted in the gdp. if so denote whether the expenditure

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