Skip to content

A Simple Mathematical Expression Evaluator in ARM Assembly

License

Notifications You must be signed in to change notification settings

Vedant2311/ARM-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARM-Calculator

This is an Implementation of evaluating parenthesized expressions in ARM. ARMSim was used to debug and run the program. The examples of the expressions on which the program was tested are given in the file Mydata.txt. Please go through these examples. The order of evaluating these expressions is from left to right. And in the case of parenthesis, the priority is given to them i.e.

3+(4*2) = 3 + 8 = 11
3+4*2 = (3 + 4) * 2 = 7*2 = 14

The file Expression_Evaluator.s has this above functionality implemented in terms of an entire system of recursion. The file UsefulFunctions.s has the standard functions useful for the Angel SWI operations. The main.s has all the I/O implementations done for the program. So, you can directly plug in the input in the ARMSim and get the output

Releases

No releases published

Packages

No packages published