; Has IRQ occur at various times around sprite DMA. ; First column refers to what instruction IRQ occurred ; after. Second column is time of IRQ, in CPU clocks relative ; to some arbitrary starting point. CUSTOM_IRQ=1 .include "shell.inc" .include "sync_apu.s" irq: bit SNDCHN rti begin: jsr sync_apu lda #0 sta SNDMODE cli delay 29273 lda #0 rts end: tsx dex lda #$80 sta $100,x landing: ; second column refers to these: nop ; 0 nop ; 1 lda #$07 ; 2 sta SPRDMA ; 4 nop ; 7 nop ; 8 nop ; 9 sei lda $100,x sec sbc #