User | Post |
d4s
Posts: 263/325 |
From what I've read, FX chip is really just another 65c816 (same instruction set) but many megahertz faster (3x faster than the SNES main CPU)
ahahahaha well...
actually, thats not funny. its pretty sad... that sentence alone contains so many errors and misinformation that i stopped reading there. basically, everything this sentence states is horribly wrong.
dude, if you want to compile some useful info, youd be better off getting the official documents and if you cant get them, at least read the super fx patents nintendo filed. they are very detailled and freely available.
|
HyperLamer
Posts: 6056/8210 |
Er, I didn't mean 65816, I meant SA-1. It's like a second 65816 in the cartridge, not used with SFX. Does it have separate memory, or does it have to execute from somewhere that the main CPU isn't? |
Snarius
Posts: 4/4 |
Originally posted by creaothceann
Originally posted by Snarius It could use a tutorial on creating graphics.
You know about this info?
Thanks, That'll be very useful. I was referring, though, to a general tile-editing tutorial for this wikibook |
creaothceann
Posts: 28/50 |
Originally posted by Snarius It could use a tutorial on creating graphics.
You know about this info? |
d4s
Posts: 262/325 |
Originally posted by Snarius
Originally posted by HyperHacker Wait, how does 65816 work then? Does it have its own RAM, or do you have to put all its code in the game's RAM?
As I understand it, the ROM data is part of the overall SNES memory map(16MB, I believe). The program counter can be set to anywhere on it. I think the SuperFX has it's own RAM in the cartridge.
the super fx has its own ram in the cartridge, yes.
there are 2 flags for both super fx rom and ram that are set automatically while the 65816 accesses one of these areas.
if the super fx wants to access one of these and the corresponding flag is set, the sfx is placed in a wait state until the flag is cleared.
so you are able to let both execute code from rom at the same time without having to worry about bus conflicts, but this would slow down the super fx extremely, of course.
|
FuSoYa
Posts: 220/255 |
You can probably skip the open ROM dialog if you specify the file name and path of the ROM on the command line.
|
Snarius
Posts: 3/4 |
Fu, thanks for making that available. However, I'm having a hard time getting it working properly.(It doesn't display files. Running Linux, Wine.) Why don't you release the source?
Originally posted by HyperHacker Wait, how does 65816 work then? Does it have its own RAM, or do you have to put all its code in the game's RAM?
As I understand it, the ROM data is part of the overall SNES memory map(16MB, I believe). The program counter can be set to anywhere on it. I think the SuperFX has it's own RAM in the cartridge. |
HyperLamer
Posts: 6039/8210 |
Wait, how does 65816 work then? Does it have its own RAM, or do you have to put all its code in the game's RAM? |
FuSoYa
Posts: 218/255 |
Originally posted by Luigi-San I think (IIRC) that Fu has an FX assembler.
No, I just compiled a tracer... which is available on my web page, if needed.
|
d4s
Posts: 261/325 |
Originally posted by Snarius
3. Does the SuperFX execute it's code from it's(?) RAM or the ROM? Can the SuperFX and the 65c816 both address the ROM simultaneously? Does the SFX begin executing with the COP instruction, untill it hits a stop instruction?
it can execute code from ram or rom. superfx and 65816 cant access the rom at the same time.
the cop instruction is something wdc implemented into the 65816, but the snes doesnt actually use it to talk to coprocessors.
the snes has to start the super fx by writing to its registers.
Originally posted by Snarius
4. Who on earth did the ZSNES people have to torture to get their infos?
they have the official manual. the later revisions fully cover the super fx, sa1 and dsp chip.
sorry, i'm too lazy to write anything too detailed about the chip. youd be better off getting the official manual and putting it online. dont look at me, though. |
HyperLamer
Posts: 6035/8210 |
PM him, he'll reply eventually.
And it'd be hard to use an expansion chip if it couldn't access ROM. |
Snarius
Posts: 2/4 |
Originally posted by HyperHacker SFX might have its own RAM, not sure. I imagine it just runs from ROM. Also I think COP is just used if you built a system with a second CPU built in. Most expansion chips I know of get their commands from ROM writes.
I remember reading that the SuperFX begins execution after a certain instruction from the 65816. Maybe it was a write to the SFC Program Counter.
Originally posted by HyperHacker Most expansion chips I know of get their commands from ROM writes.
but do you know if both processors can have simultaneous access?
Originally posted by Luigi-Sanr I think (IIRC) that Fu has an FX assembler.
be nice if I could find him |
HyperLamer
Posts: 6004/8210 |
SFX might have its own RAM, not sure. I imagine it just runs from ROM. Also I think COP is just used if you built a system with a second CPU built in. Most expansion chips I know of get their commands from ROM writes. |
Luigi-San
Posts: 474/736 |
This forum actually does have a search feature, but only admins can see it.
I think (IIRC) that Fu has an FX assembler. |
Snarius
Posts: 1/4 |
Hello, I've started a tutorial on using the superFX chip over at wikibooks->SNES Programming. Feel free to chip in. It could use a tutorial on creating graphics.(try to be cross-platform, please)
As one might expect, I have a great many questions about the SFX, namely:
1. Are there any SuperFX assemblers out? Especially free, open-source ones!
2.How about going through this pixel-plotting routine step-by-step? I'm confused by all the ='s. And where can I find more snippets? btw this snippet is from thread 6821. ibt r8,#$00 merge r0=$0000 CY=0 to r14 add r5 r14=$e000 S=1 with r3 B=1 move r1,r3 B=0 with r6 B=1 move r12,r6 r12=$0005 B=0 with r8 B=1 add r9 r8=$0666 S=0 B=0 merge r0=$0006 getc ROM=12:E000 COLR=$ff to r14 add r5 r14=$e006 S=1 loop r12=$0004 r15=$de9b S=0 plot r1=$009c
3. Does the SuperFX execute it's code from it's(?) RAM or the ROM? Can the SuperFX and the 65c816 both address the ROM simultaneously? Does the SFX begin executing with the COP instruction, untill it hits a stop instruction?
4. Who on earth did the ZSNES people have to torture to get their infos?
5. This forum needs a search feature.
Thanks for your times. |