I want my game to work equally well on PAL as on NTSC machines, but
for some reason, I'm having some trouble getting it to work on NTSC,
at least in VICE.
Check out this little code snippet:
Code: Select all
lda #30
wait:
cmp $9004
bne wait
In PAL, if I for example change the background color right after,
it will change far left on that line as expected.
In NTSC though, it doesn't change the background color until in the
middle of the screen.
I'm not sure if this is a VICE problem or something else, because I
have no real NTSC machine to test on.
Anyone got an idea?
Here's a complete program to test with:
Code: Select all
sei
lda #0
sta $9002
loop:
ldx #9
lda #30
wait:
cmp $9004
bne wait
stx $900f
lda #0
wait2:
cmp $9004
bne wait2
lda #8
sta $900f
jmp loop