{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ECE4500_Project2 - #$/011'23%$'4151 6#78*9'4 Due at 11:59...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
!"#$"%"& ()*+ , -.- /011 , 23#"%$ 4151 6#78)*9 4 Due at 11:59 p.m. (EDT) on March 21 Name: ___________________________________ ID Number: ______________________ :%9#7;<*9"7% The objectives of this project are to reinforce your understanding of low-level computation, and to gain experience with programming in assembly language. You will accomplish this by writing a program for the MARIE processor in assembly language to perform a relatively simple task. You must assemble and test your program using the MARIE simulation package, which is available at no cost from http://computerscience.jbpub.com/ecoa/2e/student_resources.cfm . MarieSim allows you to observe the contents of registers and memory while running a program on a simulated machine. 6#7$#&= 23)*">"*&9"7% Write an assembly language program for the MARIE processor that will f i nd the maximum value that is contained in an array of 8 integers. The general structure of the assembly language source code is illustrated in Figure 1. / ECE 4500 Project 2 / Find the maximum value in an array / <Your name, and other useful comments> ORG 100 /Your program instructions go here Halt /Variables and constants X, DEC 3 /First value of data array DEC -2 /Second value DEC 17 /Third value DEC 0 DEC 8 DEC -23 DEC 5 DEC 14 /Last value of data array Max, DEC 0 /The result will be placed here Ptr, HEX 116 /Pointer to start of array X One, DEC 1 /Constant: 1 Var, . . . /Other variables and constants / can be placed here Figure 1. Code template with separate areas for instructions and data.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
For full credit, your program should satisfy these requirements: x The first instruction of your program must be placed at location (address) 0x100 in MARIE’s main memory. This is accomplished by following the template in Figure 1. x The 8 data values to be processed by your program should be in successive memory locations that immediately follow the last instruction in your program, as shown in the figure. These values should be “hard-coded” into the program, as indicated in the figure, which uses label “X” to indicate the first data value.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern