|
Subject: Re: [stella] AOTM AFOS problems From: Manuel Rotschkar <cybergoth@xxxxxxxx> Date: Thu, 01 Jul 2004 08:44:00 +0200 |
I attach the code, and the place where all trouble began is commented "HERE BEGINS THE PROBLEM".
When in doubt, don't guess at the cycles. Count them. Here's your code with cycle counts added. You can see it's running a total of 92 cycles per loop iteration, which is of course over the limit of 76. You can also see that the version without the UFO ran right up to 71 cycles, so adding anything to that would make it spill over.
LDA #3
DCP torpedoyPos
ADC #2
STA ENABL LDX #$1F ; Set stack outside loop
TXS
...
LDY vline ; Draw both missiles and ball
CPY yposBackup+2 ; inside loop
PHP
CPY yposBackup+1
PHP
CPY yposBackup
PHP
...
LDX #$FF ; Restore stack outside loop
TXSGreetings, Manuel
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [stella] AOTM AFOS problems, Erik Mooney | Thread | Odp: [stella] AOTM AFOS problems, Shrek |
| Re: [stella] AOTM AFOS problems, Erik Mooney | Date | Odp: [stella] AOTM AFOS problems, Shrek |
| Month |