Backported JSSpeccy2012's interrupt mode 2 fix