added remaining logic to trigger int at cycle 300 and clear I bit after processing