It is currently Tue Jul 16, 2019 5:58 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Jun 25, 2019 12:29 pm 
Offline

Joined: Tue Apr 11, 2006 4:08 am
Posts: 281
Location: Poland
How does 32 kB WRAM work in MMC1 SXROM? It's about access to the whole 32kB - do you have to control four banks of 8kb each ($ 6000-7FFF), or maybe switching $ 8000-FFFF between ROM and RAM?


Top
 Profile  
 
PostPosted: Tue Jun 25, 2019 12:36 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 8478
Location: Seattle
sdm wrote:
do you have to control four banks of 8kb each ($ 6000-7FFF)
This.

Is the wiki page on MMC1 unclear? If so, how can we improve it?


Top
 Profile  
 
PostPosted: Wed Jun 26, 2019 12:42 am 
Offline

Joined: Tue Apr 11, 2006 4:08 am
Posts: 281
Location: Poland
lidnariq wrote:
Is the wiki page on MMC1 unclear? If so, how can we improve it?


In addition, not everyone knows English perfectly, which in the case of technical matters is also more difficult.

I would like to make sure - that is 32kB are four banks of 8kB each, switched by bits 2-3 of the C000-DFFF register?

00 - first bank
01 - second
10 - third
11 - last

example:

lda 00001100
sta C000
= select last 8kb bank of 32kB SXROM WRAM?

??


Last edited by sdm on Wed Jun 26, 2019 7:12 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Jun 26, 2019 5:23 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 21505
Location: NE Indiana, USA (NTSC)
Usually, if you're using large ROM or large SRAM with MMC1 (SOROM, SUROM, SXROM), you set 8K CHR mode in $8000 and write the bank number to $A000. You also write the bank number serially, one bit at a time for five bits.

_________________
Pin Eight | Twitter | GitHub | Patreon


Top
 Profile  
 
PostPosted: Wed Jun 26, 2019 7:15 am 
Offline

Joined: Tue Apr 11, 2006 4:08 am
Posts: 281
Location: Poland
switch to last 8kb bank of 32kB SXROM WRAM:

lda #%00001100
sta $A000
lsr a
sta $A000
lsr a
sta $A000
lsr a
sta $A000
lsr a
sta $A000

correct?


Top
 Profile  
 
PostPosted: Wed Jun 26, 2019 7:36 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 21505
Location: NE Indiana, USA (NTSC)
Correct, though this also changes to the first 256 KiB bank of a PRG ROM larger than 256 KiB.

_________________
Pin Eight | Twitter | GitHub | Patreon


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Banshaku and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group