How confident are you about the masks? Involving 12 bits is a surprisingly large number. And A15 has to be involved—as is, writes to NES internal RAM ($0122, $0322, &c) would control IRQs. —Lidnariq (talk) 12:09, 20 April 2018 (MDT)