SEI clears the 6502 interrupt flag, disabling interrupts during NES startup. This prevents interrupt activity while the PPU, APU, and control registers are initialized. section 5.12
Disable interrupts at reset
Place sei at the start of the reset routine, before configuring hardware: sei; lda #0; sta PPU_CONTROL; sta PPU_MASK; sta APU_DM_CONTROL. section 5.12
