AEMP - 'Algebraic Entry Mode Parser'

This program uses a 'vectored enter' to process the command line into an algebraic if possible.
Dont worry with what you enter into the command line, my program can handle all cases, and if it can it will return to the edit line with an 'Invalid Syntax' message.
First the parser will check to see if the command line can be parsed as a program, if this failes it will be parsed as an algebraic object (note that you dont have to enter the ' before and after the object), and if this failes it will do one of two things:
If there are no arguments on the stack - it will error to 'Invalid Syntax'.
If there are arguments on the stack - it will put the first argument on the stack infront of the entered command and try to parse as an algebraic.
I hope you like and appreciate this program, it took me at least 5 memory clears and 15 warmstarts to get it right! As it is it should work on all G/GX ROM versions, and it should also work on the S/SX (but dont take my word for it).

There are two files included, try them out, see wich one you like best.
NOTE: The files MUST retain their names AS THEY ARE EXACTLY. The files can be moved to another directory, but AEMP will only work from that directory or its sub-directories. The 'vectored enter' will not work otherwise. You must be in USER KEYS mode and with system flag 63 set (do << -63 SF >> ) for this to work. For information on how to use the 'vertored enter' refer tho the HP48 FAQ maintained by Andre Schorl.

Approximate execution overhead:
RPL:		0.1_sec
ALG-Valid:	0.3_sec
ALG-Invalid:	0.5_sec
ALG&Stack:	0.4_sec


Eg- The stack display as it would look while his is being done.
Before		After

3:		4:
2:		3:
1:		2:
98*63+36	1:	6210

3:		4:
2:		3:
1:		2:
'98*63+36'	1:	'98*63+36'

3:		4:
2:		3:
1:	98	2:
*63+36		1:	6210

3:		4:
2:		3:
1:		2:
98 63 * 36 +	1:	6210

3:	36	4:
2:	98	3:
1:	63	2:
* +		1:	6210


Samuel Mathieson
September 3 1998
Questions, comments, suggestions to
sam_i_am@geocities.com