Jump to content
Sign in to follow this  
Atarigmr

DLIST

Recommended Posts

Hi

 

I have started to play with some ataru 8 bit coding and I have ran into a problem, I am trying to have a widescreen with 240 lines (30 lines of which are mode 2 and the others mode 4), but it flickers, it only works with 232 lines, my dlist is:

 

dlist dta $42,a(vram),2,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,$41,a(dlist)

 

What am I doing wrong?

 

thx

Share this post


Link to post
Share on other sites

Your display list is actually 241 scanlines tall -- the JVB instruction ($41) occupies a blank line. If you aren't rewriting DLISTL/DLISTH every frame, you're alternating between what you wanted to see and a completely blank frame.

Share this post


Link to post
Share on other sites

I have found that I need two more lines :( , is it possible to have a 40x32 chars mode? If so would it be tricky to set up?

Share this post


Link to post
Share on other sites

40 x 30 is normally the max - but you can get problems if the 240th scanline is in hires. There's a fix for it, involves using a DLI to play about with DMACTL at the right times.

 

You can create shortened characters using DLIs and VSCROL register changes.

 

So, e.g. if you have 6 pixel high chrs instead of 8 that means possibly 40x40.

 

My interlaced demo raises the usable resolution to 480 pixels instead of 240. 8 pixel high chrs could be done at 40 x 60 although they're half normal height and might be a bit hard to read.

 

Easist fix for you would be just use VSCROL tricks. You could get away without needing custom character sets by doing 7 pixel high characters.

 

240 / 7 gives 34 character rows with a few scanlines left over.

Share this post


Link to post
Share on other sites

Thank you for clarifying things Rybags.

 

Shorter chars are not an option but I have come with an idea but I don't know if it will look ok - the extra lines were to be top and bottom game stats but I can have the game area a bit smaller(horizontally) and then have some columns on the sides free where I would have the score and other stats displayed vertically but this might be impractical as it might be hard to read also if I want to have some displaylist interrupts to get more color this will affect the stats too... hmmm

Share this post


Link to post
Share on other sites

You don't have to do it for the whole screen.

 

You could make a special font and just have short chars for a few lines top/bottom.

Or you could just use bitmap and render chars by software.

Share this post


Link to post
Share on other sites

Thx Rybags,

 

I have chosen char mode because I can have the 5th color.

 

The 30 lines of the play area must be 8 pixels high each.

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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...