Antonio L Benci wrote: > > Command parsers, easy as pie... > > Wrote one for the FED BASIC 16C74 chip. Used to control two stepper > motors over a serial interface. Basically all I did was to read the > command string into a buffer till the appropriate line terminator was > seen. Then the string in the buffer was parsed for the appropriate > command string block, fixed format for ease of programming... > > The string block was then sent to an If/Then/Else table to select the > operation required with respect to the the two byte string... I wrote a scaled-down 'script' parser for communications on a 16C77 (reads stuff from i2c) which works well, but I have never attempted a full-scale job. -- Friendly Regards /"\ \ / Tjaart van der Walt X ASCII RIBBON CAMPAIGN mailto:tjaart@wasp.co.za / \ AGAINST HTML MAIL |--------------------------------------------------| | WASP International | |R&D Engineer : GSM peripheral services development| |--------------------------------------------------| | Mobile : tjaart@sms.wasp.co.za (160 text chars) | | http://www.wasp.co.za/~tjaart/index.html | |Voice: +27-(0)11-622-8686 Fax: +27-(0)11-622-8973| | WGS-84 : 26¡10.52'S 28¡06.19'E | |--------------------------------------------------|