{create stable raster IRQ} - time exact starting point - change $d020/$d021 - create delay with loop, BITs and NOPs - change $d020/$d021 - create delay with loop, BITs and NOPs - change $d020/$d021 - create delay with loop, BITs and NOPs - change $d020/$d021 - create delay with loop, BITs and NOPs - change $d020/$d021 etc. - end of IRQ
stabilize_raster lda $d019 sta $d019 ldx #$ff ldy #$00 stx $dc00 sty $dc02 stx $dc03 stx $dc01 sty $dc01 stx $dc01 lda $d013 stx $dc02 sty $dc03 stx $dc01 ldx #$7f stx $dc00 lsr a lsr a lsr a sta timeout+1 bcc timing timing clv timeout bvc timeout nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop lda $d012 and #%00000111 tax lda delay,x tax dex bne *-1 stabilizer_raster_000 rts delay .byte 1,1,1,1,$10,$10,1,1
jsr stabilize_raster