I have a question with how sprite 0 hits work in. My emulator currently fails with error code #6 on blargg's test 05.left_clip. Looking at the readme, it says that the flag should not be set:
But looking at the code (and my emulator's logs), isn't the sprite x set to 7? And doesn't that mean that if there is an opaque pixel after the first pixel, the flag should be set?
Am I misunderstanding something?
Code:
lda #upper_left_tile
sta sprite_tile
lda #7
sta sprite_x
lda #6;) Should miss; sprite pixel covered by left-edge clip
ldx #$18
jsr sprite_should_miss
sta sprite_tile
lda #7
sta sprite_x
lda #6;) Should miss; sprite pixel covered by left-edge clip
ldx #$18
jsr sprite_should_miss
But looking at the code (and my emulator's logs), isn't the sprite x set to 7? And doesn't that mean that if there is an opaque pixel after the first pixel, the flag should be set?
Am I misunderstanding something?