project-01 - CSE 341 Fall 2011 Project #1 Due: Friday,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 341 Fall 2011 Project #1 Due : Friday, October 28, at 11:59 PM Program Description Write a MIPS assembly language program that evaluates an expression entered by the user as a null terminated string of ASCII characters. The expression entered string should be stored at the address 0x1000000010 in memory as a string of ASCII bytes, terminated by null (the binary value 0). Valid operations include addition (+), subtraction (-), multiplication (*), and division (/). The equation may contain up to three (3) variables: x, y, and z. The values of these variables are entered by the user, and are stored in memory as signed halfwords at memory locations 0x10000000, 0x10000002, and 0x10000004 respectively. Order of operations must be properly handled, with multiplication and division taking precedence over addition and subtraction. Your program should be stored at main . You may use the divide or multiply instructions div, divu, mult, and multu. Your program MUST be modular, using subroutines for various tasks, such as converting an constant from ASCII to binary. The software
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

project-01 - CSE 341 Fall 2011 Project #1 Due: Friday,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online