Design and write an assembly language program

Assignment Help Programming Languages
Reference no: EM131013050

Design and write an assembly language program for the MARIE processor that counts the number of occurrences of a particular word value in an array of words.

This program 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.

b) Use constant data values (One, Words, Key, and Base) that 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. The program should not change any of the data values in the array. These values should all be "hard-coded" into the program. Ensure that you set the value in location Base depending on where the assembler places the array, as indicated in the listing file.

c) 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 your solution, so test the program thoroughly with different values. The value in location Words must be greater than or equal to 1.

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

e) The program must use a loop and indirect addressing to access the values in the array of words. Use meaningful loop variables names like Ptr, Cnt, and Match in the loop.

f) 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.

Reference no: EM131013050

Questions Cloud

Determine the reaction forces at e and d : The booms BE and CD are also pinned to the cross-link BC using smooth pins at B and C. The length of boom BE = CD = 6.5 m. The weight of BE, CD and BC are very small and can be ignored in the analysis. Determine the reaction forces at E and D.
Give three types of computer networks topology : Give three types of computer networks topology and suggest the best topology
Determine the price of a bond issue : Determine the price of a $200,000 bond issue under each of the following independent assumptions: 20 years semi-annually 12% & 12%
G succeeds then execute goal p else execute goal q : Which one of the following prolog programs correctly implement "if G succeeds then execute goal P else execute goal q ?" (A) if-else (G, P, q) :- !, call(G), call(P). if-else (G, P, q) :- call(q).
Design and write an assembly language program : Design and write an assembly language program for the MARIE processor that counts the number of occurrences of a particular word value in an array of words.
What is the height of the trapezoid : A trapezoid has base lenghts of 19.5 and 24.5 centimeters with an area of 154 cm squared. What is the height of the trapezoid
What is the critical slope for channel : You are building a new channel and the local guidelines say that the critical slope and the bed slope can not be the same. Assuming a rectangular channel with 10ft base width and roughness of 0.015, what is the critical slope for the channel if th..
When inflation is not considered : a. When inflation is not considered. b. When inflation is considered
Calculate internal forces and moments acting on right half : Calculate the internal forces and moments acting on the right half of a cut at a plane 24 in from the tip of the cantilever for the loading shown. Use the coordinate system indicated below (positive in the labelled direction) and the right-hand-ru..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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