AOTM AFOS problems

Subject: AOTM AFOS problems
From: "Shrek" <matzieq@xxxxxxxxxxxxxx>
Date: Thu, 1 Jul 2004 01:57:30 +0200
Hello there!
I'm working on the AOTM AFOS  now, I decided to rewrite the game almost from the beginning. Now I'm playing with the vertical positioning routine mentioned by Andrew Davie in his tutorial, something like this:
 SBC Ufo_Y  
 ADC #12   
 BCC EndOfDrawingUfo

 ADC Ufo_Frame_Offset
 LDA (Ufo_Sprite_Ad),Y
 STA Ufo_Buffer
It was supposed to be around 20 cycles. I've inserted three such routines into one scanline, and 20*3 is 60 as far as I know. But when I run it, it seems, that it doesn't fit into the line! So what's wrong?!?
I attach the code, and the place where all trouble began is commented "HERE BEGINS THE PROBLEM".
Please, help!... I don't know what to do... I begin to feel frustrated!

Attachment: take2.asm
Description: Binary data

Current Thread