starfighter1314 Posted October 30, 2006 Share Posted October 30, 2006 (edited) Hello, I posted this in the Hacks forum, but haven't heard anything. Maybe someone in here can help. I am having a timing problem in my Combat hack. When all 4 paddles are rotated counter-clockwise, the whole playfield shifts downward a couple of scanlines. I haven't been able to pinpoint the problem, but it only happens when all 4 paddles are in that zone. Any ideas? thanks in advance, -s Edited April 20, 2007 by starfighter1314 Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted October 30, 2006 Share Posted October 30, 2006 (edited) Reading the pods takes too long in worst case. Optimizing the slowest execution path may help: LDX #$08 LDA INPT0;3 BPL PotNot00; 2 or 3 STX POT0;3 PotNot00 LDA INPT1 BPL PotNot01 STX POT1 PotNot01 LDA INPT2 BPL PotNot02 STX POT2 PotNot02 LDA INPT3 BPL PotNot04 STX POT3 PotNot04 JMP PotNot3; 3 Do the same with SecondFrame code. This saves 6 cycles, which should be enough. Edited October 30, 2006 by Thomas Jentzsch Quote Link to comment Share on other sites More sharing options...
starfighter1314 Posted November 5, 2006 Author Share Posted November 5, 2006 Thanks! That did the trick. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.