Jump to content
starfighter1314

Kernel Timing Problem in my Hack (QuadraTank)

Recommended Posts

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 by starfighter1314

Share this post


Link to post
Share on other sites

:idea: 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 by Thomas Jentzsch

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...