The marie simulator

Assignment Help Basic Computer Science
Reference no: EM131934

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: EM131934

Questions Cloud

Show the implications of outsourcing : Show the implications of outsourcing R&D for middle managers.
Prepare a businesspartner : Prepare a BusinessPartner class that contains a company name, first name and a telephone number.
Evaluate function when f is u-u continuous : Evaluate function when f is U-U continuous.
Determine the weighted average cost of capital : Determine the weighted average cost of capital and the weighted marginal cost (WMCC) for each range of total financin
The marie simulator : Depending on how comfortable you are with using the MARIE simulator after reading
Finds the value of a using a numerical method : Finds the value of a using a numerical method
Online vs. face-to-face classes : Communication A significant distinction between online and face-to-face classes lies in the area of communication.
Evaluate the exit velocity : Evaluate the valve closure to achieve a water exit velocity
Create a consumer price index : Create a Consumer Price Index

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

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