Defined and implemented a software interrupt mechanism.