SPC-700 in an FPGA

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

SPC-700 in an FPGA

Post by kevtris » Fri Mar 21, 2008 6:16 pm

Well I decided to try dinking around and dropping an SPC-700 into my FPGA for fun, but I cannot find any of those good docs that Blargg talks about. Google and wikipedia return docs from 1997 or so which I know are ancient and all but useless.

Is there some secret document fountain I am missing? Ideally I will be modifying my 6502 core to run the CPU and then some FPGA fun for the DSP portion itself.
/* this is a comment */

User avatar
blargg
Posts: 3715
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Post by blargg » Fri Mar 21, 2008 6:38 pm


User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

Post by kevtris » Sat Mar 22, 2008 12:42 am

Great, thanks. exactly what I need for my feasability analysis!
/* this is a comment */

User avatar
dXtr
Posts: 375
Joined: Tue Sep 21, 2004 12:11 am
Location: Karlshamn (Sweden)

Post by dXtr » Sat Mar 22, 2008 11:31 am

You have some other docs here too:
http://emureview.ztnet.com/developerscorner/
Sorry for misspellings, I'm from Sweden ^^

User avatar
Jeroen
Posts: 982
Joined: Tue Jul 03, 2007 1:49 pm

Post by Jeroen » Sat Mar 22, 2008 5:11 pm

Must have............*starts humping the temporarily converted kevtendo*

tepples
Posts: 21935
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples » Sat Mar 22, 2008 7:30 pm

From what I've read of the documents, the SPC700 CPU handles like a 6502. But something struck me as odd about the mnemonics:

Code: Select all

.section "IPL"
    MOV X, #$EF
    MOV SP, X
It looks like someone with an x86 background took out a red pen and scribbled all over a 6502 manual.

caitsith2
Posts: 74
Joined: Mon May 26, 2008 11:41 pm

Post by caitsith2 » Mon May 26, 2008 11:54 pm

Any progress on this FPGA SPC-700 project at all?

User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

Post by kevtris » Tue May 27, 2008 3:59 pm

caitsith2 wrote:Any progress on this FPGA SPC-700 project at all?
Yes and no. Since I posted that, I made the hardware, debugged it, got a miniDOS running, and added SID, NSF (NES+N106+VRC6+MMC5+FME7), pokey, and FM (OPL3).

I got about 90% of the SPC-700 CPU done the weekend I asked for the info but then circuit boards and parts came so I was busy putting it together and all that.

It's going to be a chiptune+MIDI synth in the end, but right now it's just a chiptune player. At the moment it is playing SIDs, SAP, NSF, CMF, RAW, IMF, MUS, and some other formats. SPC is still there ready to be finished but I've been working on getting everything else done first.

It is reading those files right off of SD cards now (normal and SD-HC) using some 6502 code and the FPGA stuff.

You can keep track of progress on my blog, though I haven't posted in awhile. I should update it with some mp3s and such but I've been working like hell on it and haven't done the blog updates.

http://blog.kevtris.org/
/* this is a comment */

User avatar
jargon
B&: This is not your blog
Posts: 208
Joined: Fri Dec 07, 2007 11:40 pm
Location: 480/85260
Contact:

Post by jargon » Tue May 27, 2008 6:11 pm

tepples wrote:From what I've read of the documents, the SPC700 CPU handles like a 6502. But something struck me as odd about the mnemonics:

Code: Select all

.section "IPL"
    MOV X, #$EF
    MOV SP, X
It looks like someone with an x86 background took out a red pen and scribbled all over a 6502 manual.
i have no idea what you are getting at.

looks like regular old assembler to me.

what byte offset in which document does that start at? (so i can easily see what you are referring to, in order to get a better idea)

only thing i see weird is that it looks like it uses a different syntax standard. (ie: not for NESASM)

-edit-

actually it looks like some sort of ambiguous LADS syntax, as if it were taking advantage of a flaw in the parser.

if it is just for LADS and not NESASM, then i will start work on hand-disassembling LADS in order to figure out how that even works.

-edit-

lol SPC700 not 6502, NEVERMIND
Jeroen wrote:Must have............*starts humping the temporarily converted kevtendo*
(saw that and my brain loopdy-looped into a completely different subject.)
Cheers,
Timothy Robert Keal alias jargon

Image
Miser's House Anthology Project

User avatar
B00daW
Posts: 584
Joined: Thu Jan 03, 2008 1:48 pm

Post by B00daW » Tue May 27, 2008 6:49 pm

*sigh* :(

User avatar
Zepper
Formerly Fx3
Posts: 3192
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Post by Zepper » Tue May 27, 2008 7:19 pm

B00daW wrote:*sigh* :(
Where's the second chance? :D <drops a bomb>

User avatar
dXtr
Posts: 375
Joined: Tue Sep 21, 2004 12:11 am
Location: Karlshamn (Sweden)

Post by dXtr » Wed May 28, 2008 3:12 am

kevtris > cool, always enjoy your hw projects. Just drop it in a nice box and add a headphone connector and you got a device that kicks iPods ass :D

tepples
Posts: 21935
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples » Wed May 28, 2008 6:45 am

How much battery life would a dedicated NSF/SPC player get? An iPod can play any NSF or SPC file that has been transcoded to m4a. Sure, m4a is storage-inefficient compared to sequenced formats such as NSF, SPC, or S3M, but you can fit a metric feces-ton of m4a files on even an iPod nano. How many game soundtracks does one actually listen to?

Post Reply