Question: Using Mars. Develop a command processor using modules from earlier assignments as outlined below. Develop and test a simple command processor for MARS that will
Using Mars. Develop a command processor using modules from earlier assignments as outlined below.
Develop and test a simple command processor for MARS that will support at least commands:
"help":
display the list of commands supported by your command processor and a few words describing each command, it's parameters if any and function.
"echo"
display the text following the command
"exit"
shut down the command processor.
Use the following functions from previous assignments and demos:
String copy demo Module Demo
String parse procedure Assignment Assignment
String compare assignment Midterm I Project
String read and write assignment using memory mapped IO Assignment
Do not use syscall IO
Consistent with typical command processors your main program should:
prompt the user for a command something like
read the command line entered by the user at the keyboard
echo the command line entered by the user to the display
parse the first "token" to find the command name
using the string compare code in a previous assignment find the correct entry point in a table of commands and entry points
if the command is not found in the table write an error message and loop
execute the command passing the input line as a parameter be sure to follow system register saving and parameter passing conventions
repeat this process until the user enters the "exit" command.
You may implement additional commands for extra credit of to points. Submit your extra credit proposal to Lou via email for commentapproval prior to implementation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
