Data processor with an interrupt function