Jump to content
IGNORED

Dead Display list line


Recommended Posts

Im using a mixed mode display with a simple modification to the display list in basic.

 

here is the basic example: 

 

1300 GRAPHICS 28:DL=PEEK(560)+256*PEEK(561):POKE DL+3,66

 

And that is mode 12+16  a multicolor character mode  and one  line at the top with basic text mode 0.

 

And i can put characters and text in this mode 0  line at the top, But when i load the rest of the program witch is mostly assembler then i cannot put anything into this mode 0 line.

 

If i try move the  mode 0 line down then it just blanks out anything just a solid one color mode line is shown. So somehow when i load the rest of the program this mode 0 line seems dead and i cannot reach into it to put anything there.. . The program dos not crash. So i wonder how the rest of my program may make this happen ? something with the VBI adress ? 

 

Link to comment
Share on other sites

Maybe the screen priority can do this ?. it seems the mode 0 line is overlapping anyhing even text i try put into it. when the rest of my program is loaded. Just a solid color bar is shown. I do have a custom character set in the rest of my program, not sure if  that can influence the display list ?.

Link to comment
Share on other sites

Here is a image where i do a test and put the mode 0 line down on screen. As shown here the mode 0 line blanks out anything and i can't put text into it.  The numbers on top are just tests, these are shown in mode 12+16 multicolor.

dracline.png

Edited by Grevle
Link to comment
Share on other sites

Don't forget the first line will have LMS so you need to leave the following 2 bytes in the DList alone otherwise the screen memory start could change.

 

Altirra debugger can help with this sort of stuff since you can dump the active DList and see what it's doing.

  • Like 1
Link to comment
Share on other sites

10 minutes ago, Rybags said:

Don't forget the first line will have LMS so you need to leave the following 2 bytes in the DList alone otherwise the screen memory start could change.

 

Altirra debugger can help with this sort of stuff since you can dump the active DList and see what it's doing.

 

That would be helpful. Im not exactly sure how it's done. I did locate the displaylist code and seems normal with the lms intact. How can i dump it you mean ?

 

 

Dracula H Dlist.jpg

Link to comment
Share on other sites

  1. If your using a custom character set, you probably need to point to the internal character set in a VBI,

then a DLI after that line to switch to your custom character set.

 

in VBI

lda #$e0

sta $d409

sta $2f4

....

 

in DLI

 

pha

lda #<your char set location>

sta $d409

sta $2f4

pla

rti

Edited by TGB1718
Link to comment
Share on other sites

What are the values of the color registers? Note that in a mode-2 line, you can only set the luminance, but not the color of the foreground. If, by pure chance, the luminance values of playfield 1 and playfield 2 are identical, then there is nothing to see in this line. You may want to trigger a DLI after the LMS 2 line to reload the color registers with something more suitable for the mode-4 lines.

 

Link to comment
Share on other sites

54 minutes ago, thorfdbg said:

What are the values of the color registers? Note that in a mode-2 line, you can only set the luminance, but not the color of the foreground. If, by pure chance, the luminance values of playfield 1 and playfield 2 are identical, then there is nothing to see in this line. You may want to trigger a DLI after the LMS 2 line to reload the color registers with something more suitable for the mode-4 lines.

 

Thank you. I'm gonna look into that. I managed to do a variation fix by putting a text mode 1 at the top or i can use a mode 4 line with custom number characters to appear there.. thanks for the help everybody.?

Edited by Grevle
Link to comment
Share on other sites

  • 2 weeks 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...