Jump to content
IGNORED

[5200/8bit] Display list question


DEBRO

Recommended Posts

I've been playing around with a few things trying to refresh my memory on the 5200/8-bits and had a question about the display list. Lets say you're running out of RAM could you not store your display list in ROM? Why do we (all the code I've seen does this) copy the display list into RAM if the display list doesn't change during the program? Could you not do:

code:


lda #<DisplayList

sta SDLSTL

 

lda #>DiplsayList

sta SDLSTH

.

.

.

org $<some ROM location>

DisplayList

.byte $70,$70,$70 ; 24 blank lines for overscan

.

.

.

.byte $41 ; Wait for VBlank to finish

.byte $<some ROM location low>

.byte $<some ROM location high>


Link to comment
Share on other sites

I'm a bit unsure of where RAM ends and ROM begins. Could one of you help to explain it to me?

 

For example, RAM seems to start at $0000. I use Zero Page for many variables; $1800 starts my Player area; $2000 starts my screen RAM , which extends beyond the 4K boundary at $3000.

 

So where does RAM end?

 

Speaking of ROM memory, I have stmts like "ORG A000" in my code -- this must be ROM. So at which memory address does RAM end and ROM begin, for 16k and 32k roms?

Link to comment
Share on other sites

RAM runs from $0000-$3FFF. The cartridge ROM space runs from $4000-$BFFF. A 32K cartridge will take up the whole space. With 16K carts it depends on how the cart is constructed. If the cart uses a single 16K ROM chip, it will appear at locations $4000-$BFFF. If it uses two 8K ROM chips (which was very common in 5200 carts) the first 8K will appear at $4000-$5FFF and repeat at $6000-$7FFF, the second 8K will appear at $8000-$9FFF and repeat at $A000-$BFFF.

 

Dan

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