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 and execute one join query

Attach a .txt file showing the SQL query program, and a Microsoft Word file with an authentication screen shot that shows the output of this join query.

  Write down a method which is passed string argument

Write down a method, getFirstLine, which is passed a String argument and that returns first line. (Recall that lines are terminated with the "n" character.)

  Write a statement that prints the message recall

Clunker Motors Inc. is recalling all vehicles from model years 1995-1998 and 2004-2006. Given a variable modelYear - Write a statement that prints the message "Recall" to standard output if the value of modelYear falls within those two ranges.

  Explain fundamentals types of scalar-array and hash in perl

Later versions of perl moved beyond fundamentals types of scalar, array, and hash and introduced a reference type. Write down the Perl subroutine, referenceTypeExample.

  Create a windows form application project.

Add an Enter Friend button which will process the entries made in the textboxes; writing each entry to a file and an Exit button which will exit the application

  Implement a program that processes an input file

Implement a program that processes an input file by changing every occurrence of an old string into a new string. (e.g., the usage is: chstr.pl file oldstring newstring, chstr.pl is your program name, file, oldstring and newstring are parameters ..

  Write a c function called values that returns void

Write a C function called values that returns void and takes two double precision arguments (called a and b) and one double precision array argument.

  Create a program to compute car-s miles-per-gallon

Create a program which ask's the user for number of miles driven and gallons of gas used. It must compute the car's miles-per-gallon and show the result on the screen.

  Write down a program which reads an integer between 0 and

write a program that reads an integer between 0 and 10000 by selecting the integer at random then sum the digits. for

  Write program to compute integer part of quotient

Write program segments that accomplish each of the following: Calculate the integer part of the quotient when integer a is divided by integer b.

  Hierarchy of processes

Write a program that creates a hierarchy of processes using the fork() system call.

  Program that creates a series of random 2d objects

Create a program (OpenGL, or DirectX) that creates a series of random 2D objects, (or 3D objects that only move in 2D), about 25 is probably good but you may need more or less and has them move around on the screen, they should wrap around the edg..

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