Implement a reverse polish calculator in marie

Assignment Help Assembly Language
Reference no: EM131458989

Implement the following in MARIE.

Instructions

I want you to implement a reverse polish calculator in MARIE. This calculator must be implemented with or support the following requirements.

Stack-Based (not a fake stack, a true, potentially very, very large stack, stored below all the instructions and other variables)           

Proper subroutines using JNS calls for each "sub process" of your code 

All inputs and outputs must be in ASCII (not integer or decimal)

The ASCII inputs of +, -, *, /, %, and ^ should properly perform the corresponding integer arithmetic operations. These should operate stack based using RPN (i.e. the operation should pop the top two elements, perform the operation, then push the result back on the stack).         

  • +: A B + = A + B
  • -: A B - = A - B
  • *: A B * = A * B
  • /: A B / = A / B (integer division, no remainder) (e.g. 14 / 4 = 3)
  • %: A B % = A % B (modulus, ONLY the remainder of the division) (e.g. 14 % 4 = 2)
  • ^: A B ^ = AB (i.e. A raised to the B, or A multiplied by itself B times)

Each arithmetic operation should be implemented as a subroutine. You shouldn't need to worry about parameters, since the subroutine should access the stack pointer and pop the top two values itself.

ASCII letters will be input to execute command functions

  • c = Clears the stack
  • d = Duplicates the value on the top of the stack, pushing another copy of it
  • r = Reverses the order of the top two values on the stack
  • p = Prints the value on the top of the stack without modifying the stack (Peek command). Prints a blank line (or a space) after.
  • n = Prints the value on the top of the stack, popping it off. Prints a blank line (or a space) after.
  • f = Prints the entire stack, starting from the beginning (bottom) of the stack. Prints a blank line (or a space) after.
  • q = Exits the program.

Attachment:- Assignment File.rar

Reference no: EM131458989

Questions Cloud

Database implementation and system prototype : AACS3154 WEB-BASED SYSTEMS DEVELOPMENT Project Specification - construct the DFD (using standard notations as recommended by your supervisor) that models the proposed system.
List some other ways in which you think observation method : Interpretative research offers marketing researchers many possibilities, including the opportunity to improve product features such as packaging for food.
Describe one of paul and elders ideas for improving studies : Describe the two ways that students normally study in a typical college course. Why do these techniques fail to promote deep learning?
Companies can get real creative promoting products : What are some ways you can control your company's image and brand while using the internet and social media platforms?
Implement a reverse polish calculator in marie : I want you to implement a reverse polish calculator in MARIE. This calculator must be implemented with or support the following requirements
What sorts of questions could multinational firms : McDonald's conducts extensive marketing research for all its new products, including new menu items for its overseas stores. Because of cultural and other.
Not all companies are viewed as equal : In the land of free trade, the public does not view all industries as equal. Do you believe that is ethical?
Prepare and submit a two-page reflection : Prepare and submit a two-page reflection, ideally based on the outline assignment from Unit VI. Create and submit a visual presentation with your reflection.
Where and how would you obtain the information : Some companies are broadening their markets by updating classic products to appeal to younger people's tastes and preferences.

Reviews

len1458989

4/11/2017 8:36:31 AM

Assignment Work with following details. Subject: MARIE assembly language. Details are in attached file. Notes - Significant points will be lost for the following errors/mistakes: Submission not in .mar format, Submission lacking clear quality comments, Submission does not compile and Program does not perform accurate arithmetic.

Write a Review

Assembly Language Questions & Answers

  Preform basic math computations on the numbers

Create a program called YourLastName_assignment3.asm. This simple program will print the following information to the command prompt screen as well as take in user input and perform some basic computations.

  Stack structure for unsigned integers

Write a program to push 10 items into your stack, and pop them out - Use MARIE's ISA program a stack structure for unsigned integers.

  Write a subroutine for the equation

Write a subroutine (assembly language code using NASM) for the equation - You cannot use MUL or DIV instructions, you have to perform multiplication and division (if required) using shift operations. AX and DX are the general purpose registers.

  Write a program which will give the calendar for 3 mnth

Need the following assignment assembled Using MASM and notepad ++ for windows 8086 processor write a program which will give the calendar for atleast 3 months starting from November 2011 to January 2012 including the days/dates

  Find out the largest number from an unordered array

Write an Assembly Language Program to Find out the largest number from an unordered array of 16 numbers( 8-bit) starting at the location 0500H (offset) in the segment 2000H

  Program for huffman compression/decompression

Write a program for Huffman compression/decompression in assembly language that takes the data from input.txt and writes the output in output.txt.

  Describe advantage of program-counter-relative addressing

Describe one advantage and one disadvantage of program-counter-relative addressing. The Core i7 has a condition code bit that keeps track of the carry out of bit 3 after an arithmetic operation. What good is it?

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Create and use arrays for the students names

Arrays must be used so the flowchart logic can keep track of mulltiple students, each with up to five test scores and a final. So, create and use arrays for the student's names, tests and finals.

  Make a simple assembler for the dlx processor

Your assignment is to make a simple assembler for the DLX processor. We will simplify the assembler by only using the core instructions, we will not do the floating point instructions.

  Decimal floating point number

What decimal floating point number does this IEEE 754 single precision number represent: 0x47C0_E6B7?

  Develop assembly program to implement a finite state machine

In this lab we will write an assembly program to implement a Finite State Machine (FSM) that recognizes hexadecimal integer constant that conforms to MASM syntax.

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