Hello,
There are a few source files that confuse me regarding their real purpose, naming convention and how they relate to each other. Can anyone briefly explain what the following files are about and how they differenciate from other similar files?
src/cpu/table.asm
src/cpu/tableb.asm
src/cpu/tablec.asm
These three seem to setup memory read/write handlers for each data banks, as well as routines for opcodes (??). I'm a bit confused by their name and in the fact that they are very similar...
src/cpu/e65816.inc
src/cpu/e65816b.inc
src/cpu/e65816c.inc
These files seem to correspond with their table*.asm file, and probably differenciate in the same way the above do (??).
src/cpu/65816d.inc
src/cpu/65816db.inc
src/cpu/65816dc.inc
I see many macros defined in there, though I'm not too sure about the exact relation of macros/opcodes/handlers throughout the ZSNES source. Again, why are there a 'b' and 'c' version?
src/cpu/addrni.asm
src/cpu/addrni.inc
src/cpu/address.inc
src/cpu/address2.inc
These seem to be basically the same file copied four times. :) I have some difficulty to grasp the real difference between them...
src/cpu/stable.asm
src/cpu/saddress.inc
src/cpu/saddrni.inc
src/cpu/s65816d.inc
src/cpu/se65816.inc
Hm. From what I see inside these files, they seem to be the "SA1" version of previously mentionned files. What is "SA1" anyway? :) A kind of a chip or something (??). Is it from there that came the need to duplicate the files?
Well I hope I don't discourage anyone by asking such a general question. ;P Thanks for any information!
I was trying to find a central place where the game memory (WRAM) was written to and read from, so that I could hook up the routines there, but I'm pretty much confused. So far I only worked out my way by hooking wramaccessbank[rw](8|16), but it only works with a single game for now (Secret of Mana, the one I was testing with) -- though my debugger is working pretty well under Linux so far. :]
Purpose of some files
Moderator: ZSNES Mods
Re: Purpose of some files
I can answer this part, anyway - the SA-1 is a chip included inside some SNES carts. It's a modified faster version of the main SNES CPU, as far as I know. Hence this duplication of files. Can't help you with anything else I'm afraid.quad wrote:
src/cpu/s65816d.inc
src/cpu/se65816.inc
Hm. From what I see inside these files, they seem to be the "SA1" version of previously mentionned files. What is "SA1" anyway?A kind of a chip or something (??). Is it from there that came the need to duplicate the files?
Peace Forever!
-
- ZSNES Shake Shake Prinny
- Posts: 5632
- Joined: Wed Jul 28, 2004 4:15 pm
- Location: PAL50, dood !
Nice to see someone attacking the source behemoth alone...
If you can do IRC, come in #zsnes on freenode.
If you can do IRC, come in #zsnes on freenode.
皆黙って俺について来い!!
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Code: Select all
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)