added trapped instruction parser and simple test