; Repeatedly calls read_joy_fast while DMC is ; playing and prints X when the DMC caused ; erroneous reading. dmc_rate = 15 ; 0 to 15 .include "shell.inc" .include "read_joy.inc" iter = 1000 zp_byte errors main: ; Start DMC lda #$40+dmc_rate sta $4010 lda #$FF sta $4012 sta $4013 lda #0 sta $4015 lda #$10 sta $4015 ; Repeatedly read controller ldy #>iter ldx #