Pengwin Posted March 5, 2012 Share Posted March 5, 2012 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)? Quote Link to comment Share on other sites More sharing options...
Bryan Posted March 6, 2012 Share Posted March 6, 2012 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.atariarchives.org/dere/chapt05.php Quote Link to comment Share on other sites More sharing options...
Pengwin Posted March 6, 2012 Author Share Posted March 6, 2012 (edited) 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 March 6, 2012 by Pengwin Quote Link to comment Share on other sites More sharing options...
Bryan Posted March 6, 2012 Share Posted March 6, 2012 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. 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.