Code came from ftp://ftp.cs.princeton.edu/pub/lcc/contrib/copt.shar ./copt 6809 < tgvectrex.asm > ZZZ; diff tgvectrex.asm ZZZ rules file needs to be able to: specify width of match text - even better, match to a regexp! execute arbitrary tests against matched strings, eg value tests, register names understand what opcodes alter, and be able to accept arbitrary sequences between tests which don't alter given registers or do other things with side effects (eg unbalancing the stack) put processed text back on the queue for reprocessing