The routine seams really simple and it works very well on VICE but don't work on real vic when the joy button is used.
When the user presses the joy button, i wish to wait that the user releases the joy button to execute something but in real vic, it doesn't wait while in VICE does, what's wrong ?
I've tested 3 different Vics and 2 different joysticks without AutoFire function, of course.
Code: Select all
30e4 20 E4 FF JSR $FFE4 ; GET a key
30e7 D0 12 BNE $30FB ; Key Pressed
30e9 AD 11 91 LDA $9111 ; Check Joy Button
30ec 49 FF EOR #$FF
30ee 29 20 AND #$20
30f0 F0 F2 BEQ $30E4 ; Joy button not pressed, continue loop
30f2 AD 11 91 LDA $9111 ; wait Joy button release
30f5 49 FF EOR #$FF
30f7 29 20 AND #$20
30f9 D0 F7 BNE $30F2 ; Joy button still pressed, continue wait
30fb 4C 00 20 JMP $2000 ; Main start point