You didn't say if you were watching for this on a PIC or on your PC. If on your PC thu the serial port, Telix or Procomm or some other terminal program with a built-in programing language may do. David VanHorn wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have a somewhat ugly task to take on, and I'm looking for any alternate > approaches before I implement a mess :) > > What I have to do is watch a serial byte stream for commands like: > > offset 20 or > echo on > > I have to pick the commands up, and implement them, as well as reject bad > commands (non-existent or mis-spelled) The particular command handler will > be responsible for sanity-checking the data. > > Is there any clever approach to this, or is it an ugly, brute-force thing? > FWIW, I'm doing this in assembler. > > -----BEGIN PGP SIGNATURE----- > Version: PGPfreeware 6.5.2 for non-commercial use > > iQA/AwUBOOFaKoFlGDz1l6VWEQJSoQCgwoLLc2OUU9j9ufo6H79Oi0R3nTAAoMna > f1Yn85K87RowBRkEMI1NBHsT > =n0uL > -----END PGP SIGNATURE-----