Jump to content
IGNORED

LMS 240 scanlines starting adress question


Recommended Posts

You cannot avoid it without a second LMS and reprogramming the screen driver you're using:

240 scanlines * 40 bytes (per scanline) = 9600 bytes = 2*4096+1408 bytes.

Thus, it uses (parts of) at least 3 blocks of 4kB, so there's at least 2 boundaries of 4kB.

The middle one of the 3 blocks is always used. This can't be divided into an integer number of 40 byte blocks...etc.

Link to comment
Share on other sites

You cannot avoid it without a second LMS and reprogramming the screen driver you're using:

240 scanlines * 40 bytes (per scanline) = 9600 bytes = 2*4096+1408 bytes.

Thus, it uses (parts of) at least 3 blocks of 4kB, so there's at least 2 boundaries of 4kB.

The middle one of the 3 blocks is always used. This can't be divided into an integer number of 40 byte blocks...etc.

 

 

Well forgotten to say that i am using each scanline an lms command. And it Works with $6020 f.e.

 

Link to comment
Share on other sites

You could use LMS and skip 64 bytes per scanline, but that's a bit wasteful even in Wide (48 byte) mode that's 3840 bytes not being used.

 

Easier way might be to just use table-lookup when addressing the screen RAM, then you can put the skipped screen RAM wherever you want (obviously has to be part of the middle 4K chunk being used).

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