add optional register dump to instruction trace