Skip to content

madureira/snes-rom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snes-rom

A basic structure to write SNES games and run them on SNES Emulators.

Dependencies

Building

1. Extract WLA Executables;

2. Put wlalink.exe and wla683993.exe in your C:/Windows/System32 directory;

3. Open the Windows Command-line in the project directory and type:

C:\snes-rom> wla-65816 -vo main.asm main.obj
C:\snes-rom> wlalink -vr main.link main.smc

4. In your root folder, you should now see a main.smc file, this is the finished ROM;

5. Now you can open the main.smc in a SNES Emulator to test it;

6. If you see a green screen, that worked!

Structure

The basic structure of this application is given in the following way:

  • main.asm The game source code;
  • main.link This file will help to build the ROM;
  • header.inc The header contains assembler directives for WLA which do things such as define the ROM's name, size, vectors, etc;
  • Snes_Init.asm An initialization routine, it's a piece of code that clears/resets system values and sets the SNES up for use;

Releases

No releases published

Packages

No packages published