Skip to main content
gamedev.net
🔒 Locked

snes coding...

Started by yodaman 2 replies 1.9k views
Original Post
yodaman
yodaman
Some of my favorite games of all time came out with the super nintendo. I was reminded of this when I downloaded an emulator last night along with about 40 games, including starocean, cronno trigger, front mission etc. After playing around with a few games, the engineer in me started to take control... I just did a breif search for snes coding (so don't yell at me! ;) but being that im sure a lot of you here have coded for it, I just figured I could save some time by asking you guys directly. My first and most obvious question is: where do you start? Can you use any programming language, or do you need to use a special assembly language such as (nintendo assembler??). If so, is it possible to code it in C++ and then convert it over to the proper language? The rest of the questions are obvious as well such as: what do you do for art (ie. use bmp textures but at what size max?) I figure since im using a emulator, it would be possible to max out the graphics and use 32 bit textures and such... Alrighty, well, I don't want to ask to much. If anyone could point me to a good article or site on the subject, that would be swell ;) thanx. ~Jason
www.jinx.com www.thebroken.org www.suprnova.org www.mozilla.org
outRider
outRider
Where to start...

The SNES uses a 65836 CPU. To program for it, learn 65836 assembly, get yourself an 65836 assembler and an appropriate linker. Find the specifications for the SNES architecture, this will allow you to display pixels, check key presses, and so on.

If you want to know what format the graphics hardware can display, you can find some documentation somewhere on the net I'm sure.

Finally, no, you can't use 32bit 'textures' or anything of that sort. The graphics hardware and sound hardware on the SNES only accept a certain type of data, in exchange for this they draw the graphics and play the audio data much faster than the CPU can. This is the trade off. I don't recall, but I don't think the CPU even has access to the framebuffer, so you can't draw anything yourself, even if you wanted to.

Finally, there may be some C compilers available for the 65836, but I doubt they're free, if they exist at all. C++ compilers are probably even more unlikely, considering the time period we're talking about.

If you're really intent on doing something like this, try the GBA. More info here.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.