NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext Thread*Show in Threaded Mode


SubjectHow do I change CHR-RAM?(NewbeQuestion) new  
Posted byNetuagala
Posted on11/26/02 6:21 PM
From IP219.112.10.218  



I written by Mapper3's ROM.
But I can't chr-rom switching another bank.
How do i switch chr-rom another bank?

# sorry,i can't english speach & write & read well...




SubjectRe: How do I change CHR-RAM?(NewbeQuestion) new  
Posted byJsr
Posted on11/26/02 10:08 PM
From IP62.127.17.114  



You need to have the right bank value stored in the ROM at the address you are writing to.
If we say you want CHR bank 2 and you write number 2 to $C000, then the number 2 must be in the ROM at address $C000. Its called bus conflicts, look at the solar wars source and you will understand.




SubjectRe: How do I change CHR-RAM?(NewbeQuestion)  
Posted byMemblers
Posted on11/27/02 00:21 AM
From IP68.58.96.167  



Try something like this:
(Could go anywhere in ROM, I think. Just using $C000 for an example.)

.org $C000
.byte $00,$01,$02,$03

LDA #1 ; bank # to switch to
TAX
STA $C000,X




SubjectRe: How do I change CHR-RAM?(NewbeQuestion) new  
Posted byNetuagala
Posted on11/27/02 3:14 PM
From IP219.112.10.218  



Sorry,But i can't understand...
Maybe i write Base Bootup address+bank if i wanna change to bank.
But it dose not change..

i write code this.

.inesprg 1 ; 16k prg bank
.ineschr 1 ; 8k chr bank
.inesmir 0 ; Horizontal
.inesmap 3 ; Mapper 3

.bank 0
.org $8000 ; Base Bootup

... this any code

.BankChange

sta $8003

... and more code

.bank 1
.org $E000
.org $FFFA
.dw NMI
.dw RESET
.dw IRQ

; NormalColor
.bank 2
.incbin "moji.chr"

; PincColor
.bank 3
.incbin "moji2.chr"




SubjectRe: How do I change CHR-RAM?(NewbeQuestion) new  
Posted byJsr
Posted on11/27/02 7:41 PM
From IP62.127.12.32  



You must set .ineschr to 2 if you're using two CHR banks.




SubjectRe: How do I change CHR-RAM?(NewbeQuestion) new  
Posted byMemblers
Posted on11/27/02 8:05 PM
From IP68.58.96.167  



The iNES header needs to be set to the amount of banks in the ROM. Use ".ineschr 2" so the emulator will know there's 2 CHR banks available.




SubjectRe: How do I change CHR-RAM?(NewbeQuestion) new  
Posted byNetuagala
Posted on11/27/02 10:17 PM
From IP219.112.10.218  



Thanx!!!
I change to bank!




Previous ThreadView All ThreadsNext Thread*Show in Threaded Mode
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo