Cisano Posted December 10, 2021 Share Posted December 10, 2021 (edited) Hi. I have a problem. I use this subroutine for horizontal positioning of GRP0 and Missile1. I set the parameters of GRP0 and I call it and again for the M1 Position sec sta WSYNC bit 0 .DivideLoop sbc #15 bcs .DivideLoop eor #7 asl asl asl asl sta RESP0,y sta HMP0,y rts GRP0 is perfect, I can position it pixel by pixel. With missile not. The position seems every 3 pixels. Is there some reason? Thanks Edited December 10, 2021 by Cisano Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted December 10, 2021 Share Posted December 10, 2021 Looks fine to me. Are you maybe clearing HMM1 later on? Quote Link to comment Share on other sites More sharing options...
Cisano Posted December 10, 2021 Author Share Posted December 10, 2021 No. For the records at the begin of every frame there is "sta HMCLR" The subroutine is called in the Vertical Blank. Quote Link to comment Share on other sites More sharing options...
Cisano Posted December 10, 2021 Author Share Posted December 10, 2021 I found the problem. Sorry to waste your time. It was the HMOVE in the Vertical Blank, called to move the GRP1. I fixed with a sta HMM1 Thanks anyway for your answer. It is been helpful. 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.