This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: the expression written by the user that we are going to calculate in a register. The second part will analyze recursively this string of character. It can deal with parenthesis, spaces and of course priorities of operators. For example, considering the string 5*4+3, the program will first evaluate 5*4 and will then add 3. If the string becomes 5*( ( ( (4+3)))), then the program will compute 4+3 in a first time and then multiply the result per 5. The string can be 250 characters long and the result is stored in a 32 bits register. For further details concerning the structure of the program, please refer the .asm file where all the comments have been made. To execute the program, launch the command dos windows (start, run, cmd). Write the path where the calculate.exe file is stored. Type “calculate –expression to calculate- “and then hit the “enter” key. Here is an example,:...
View Full Document
This note was uploaded on 02/10/2012 for the course ECE 4551 taught by Professor Johnhadjilogiou during the Fall '09 term at FIT.
- Fall '09
- Computer Architecture