Users browsing this thread: 2 Guest(s)
Battlescript variables...
(12-26-2015, 12:22 PM)Tenkarider Wrote: I can't say to know how exactly SNES handles stuff, clearly the ram is not inside the rom, but now i understood that ram variables are in 7E0000 area of the rom, anyway...
You're using the wrong terminology. The SNES has a 128kb WRAM (banks $7E and $7F). It's not because the WRAM has a bank mapping that it is "in the ROM". If fact, the ROM image is limited to banks $C0-$FF and 40$-6F (and their shadows).
SNES memory has offsets too!
See: http://www.emulatronia.com/doctec/consol...NESMem.txt
and last post here: http://stackoverflow.com/questions/18970...-addresses
Edit: I knew some of this already but I had to google this to be able to understand it fully also... There's no shame!
Edit2: One thing I'm not sure is when to specify or not the bank when writing to memory. Writing to $1132 (ex: STA $1132) will be equal to writing to $7E1132 (STA $7E1132) but in the game both formulations are used so the register (DB register?) holding the bank number must be set somewhere prior to one/multiple RAM writing.
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)