Jump to content
IGNORED

Session 17: Asymmetrical Playfields - Part 1


Recommended Posts

Thank you Andrew and Thomas, I do understand now. and to figure out where I went wrong I picked up the stella guide again for the 20+Nth time and I read the following..

 

Simply writing to the WSYNC causes the microprocessor to halt until the electron beam reaches the right edge of the screen, then the microprocessor resumes operation at the beginning of the 68 color clocks for horizontal blanking.  

 

For some reason I had thought it meant wsync halts the cpu until the beam reaches the left side of the screen. So you see why I was confused... it's good to know that I do have those 68 clocks (68/3=22.667 cycles) to use for game logic after all. Very cool. 8)

 

Jim

Link to comment
Share on other sites

  • 4 months later...
Our 'zero point' of any scanline is the beginning of horizontal retrace.  This is the point at which the TIA re-enables the 6502 if it has been halted by a WSYNC write.  At the beginning of any scanline, then, we know that we have exactly 68 colour clocks (=68/3 = 22.667 cycles) before the TIA starts 'drawing' the line itself.

 

Is that the start of horizontal RETRACE or horizontal BLANKING? My recollection is that the TIA reenables the 6507 when the electron beam hits the right-side border, which is actually a fair bit before the beam actually starts sweeping left. I fully appreciate that it's often useful to regard a scan line as starting as soon as the displayed portion of the previous one ends (indeed, that's how I've drawn timing charts when working out code) but in some goofy cases the distinction might be important.

 

BTW, would STA $xx be suitable for use as a three-cycle NOP, where $xx is a non-existent TIA write register? I know that some registers like $3F may be used for some bank-switching carts, but I would think some should be available.

Link to comment
Share on other sites

Hi there!

 

BTW, would STA $xx be suitable for use as a three-cycle NOP, where $xx is a non-existent TIA write register?  I know that some registers like $3F may be used for some bank-switching carts, but I would think some should be available.

866950[/snapback]

 

For a three cycle delay you can just use

SLEEP 3

 

Greetings,

Manuel

Link to comment
Share on other sites

  • 14 years later...

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...