Jump to content
IGNORED

Question about DLI's


Recommended Posts

I'm a little confused about Display List Interrupts.

 

If I have a display list as follows:

 

 

 DATA($7000)
 [
   112,112,112,72,$94E8
   8,8,8,8,8,8,8,8,8,8,8
   8,6,6,6,6,135,6,7
   65,$7000
 ]

 

Should the interrupt effect the third to last line (135) or the following line (6)?

Link to comment
Share on other sites

DLI's happen on the last line (or only line) for the specified mode, allowing you to make changes before the next line starts. Usually a WSYNC is used to align with the HBLANK area.

 

http://www.atariarch...ere/chapt05.php

 

Right, so if I have a displaylist containing:

...,135,2,...

Then, if I make a colour change, it won't effect the mode 7 line that the interrupt is on, but it will effect the mode 2 line following it. Is that right?

 

Sorry if these are basic questions, but I've not really dealt with interrupts before.

Edited by Pengwin
Link to comment
Share on other sites

As long as you wait long enough. If you make the change immediately in your DLI routine, you'll see it partway into your last mode 7 line with a lot of jitter since which cycle the DLI will be serviced on is dependent on the length of the current instruction. WSYNC gets you to the end of the line.

 

Just for fun, make your DLI both ways. Change the color before and after a STA WSYNC and see the difference.

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