Jump to content
Sign in to follow this  

Question about DLI's

Recommended Posts

I'm a little confused about Display List Interrupts.


If I have a display list as follows:





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

Share this post

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




Right, so if I have a displaylist containing:


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

Share this post

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

Share this post

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

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...