; After reset or power-up, APU acts as if $4017 were written with ; $00 from 9 to 12 clocks before first instruction begins. .include "prefix_apu.a" ; This is only run when used with devcart loader main: ; Comment out to simulate reset behavior jsr patch_reset_then_wait ; Simulate reset behavior with delay of 10 jsr sync_apu lda #$00 sta $4017 ; 1 lda <0 ; 3 nop ; 6 nop nop ; Test ROM begins here reset: ldx $4015 lda #2;) $4015 didn't read back as $00 at power-up sta