An easy way to add commands is replace the vector to
SYNTAX ERROR with your
own parser.
Actually, for those Microsoft BASICs with a CHRGET routine in RAM, easier
still was to wedge (hence the name) into that. On PETs that was the only
way you could do it, in fact. Its chief drawback was speed.
For that matter, altering the tokenizer vector (such as ICRUNCH on the 64)
is a better method than trapping errors. Lots of C64 tools added commands
in that fashion.
But for my own projects, I usually just use SYS/USR and extensions to get
parameters.
--
------------------------------------ personal:
http://www.cameronkaiser.com/ --
Cameron Kaiser * Floodgap Systems *
www.floodgap.com * ckaiser at
floodgap.com
-- The fact that it works is immaterial. -- L. Ogborn -------------------------