Jump to content
IGNORED

Top two lines of playfield not showing


Recommended Posts

I tried to write some code to display a playfield.  I used the framework from the Taswegian tutorial, and nicked a bit of code from the Spiceware tutorial (by Mr Spice - having seen Dune, I need to ask, should I be worried? Are giant sandworms going to come after me? ;) ) to display a playfield.  Each "line" should be 8 scanlines high, which is generally the case, but the top two lines are missing and I cannot see why.  All the data is there, and the rest of it is displayed correctly.  I am running it on Stella and other things seem to run fine, so I don't think I have done anything to Stella to mess it up.

 

I did wonder if it was something to do with the arena height being different in the collect tutorial, but I am using ldy #192 as the line counter.

test_kernel.zip

Link to comment
Share on other sites

You have not initialised "x" for the VerticalBlank delay loop.

Since it exits at the bottom of frame with x=30, that loop probably only gives you 6 scanlines instead of the expected 36.

You can use cmd-L to show scanline count in stella (or the windows equivalent).

 

Link to comment
Share on other sites

6 hours ago, Andrew Davie said:

You have not initialised "x" for the VerticalBlank delay loop.

Since it exits at the bottom of frame with x=30, that loop probably only gives you 6 scanlines instead of the expected 36.

You can use cmd-L to show scanline count in stella (or the windows equivalent).

 

Thank you so much, so obvious when it is pointed out!

 

Link to comment
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...