Simple SNES shoot-'em-up game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.4 KiB

9 years ago
  1. ;------------------------------ Header File ---------------------------------
  2. ; This is basically a combo of MarctheMER's and Neviksti's header files
  3. ; Perhaps reading their's will also help your understanding of the header,
  4. ; but I believe this will be the simplest method of defining your header,
  5. ; as Marc's doesn't provide a full explanation, and Neviksti's can be
  6. ; a bit more difficult for beginners (using the WLA directives is easier).
  7. ;----------------------------------------------------------------------------
  8. ;==LoRom== ; We'll get to HiRom some other time.
  9. .MEMORYMAP ; Begin describing the system architecture.
  10. SLOTSIZE $8000 ; The slot is $8000 bytes in size. More details on slots later.
  11. DEFAULTSLOT 0 ; There's only 1 slot in SNES, there are more in other consoles.
  12. SLOT 0 $8000 ; Define's Slot 0's starting address.
  13. .ENDME ; End MemoryMap definition
  14. .ROMBANKSIZE $8000 ; Every ROM bank is 32 KBytes in size
  15. .ROMBANKS 8 ; 2 Mbits - Tell WLA we want to use 8 ROM Banks
  16. .SNESHEADER
  17. ID "SNES" ; 1-4 letter string, just leave it as "SNES"
  18. NAME "PEW PEW " ; Program Title - can't be over 21 bytes,
  19. ; "123456789012345678901" ; use spaces for unused bytes of the name.
  20. SLOWROM
  21. LOROM
  22. CARTRIDGETYPE $00 ; $00 = ROM only, see WLA documentation for others
  23. ROMSIZE $08 ; $08 = 2 Mbits, see WLA doc for more..
  24. SRAMSIZE $00 ; No SRAM see WLA doc for more..
  25. COUNTRY $01 ; $01 = U.S. $00 = Japan, that's all I know
  26. LICENSEECODE $00 ; Just use $00
  27. VERSION $00 ; $00 = 1.00, $01 = 1.01, etc.
  28. .ENDSNES
  29. .SNESNATIVEVECTOR ; Define Native Mode interrupt vector table
  30. COP EmptyHandler
  31. BRK EmptyHandler
  32. ABORT EmptyHandler
  33. NMI VBlankHandler
  34. IRQ EmptyHandler
  35. .ENDNATIVEVECTOR
  36. .SNESEMUVECTOR ; Define Emulation Mode interrupt vector table
  37. COP EmptyHandler
  38. ABORT EmptyHandler
  39. NMI EmptyHandler
  40. RESET Start
  41. IRQBRK EmptyHandler
  42. .ENDEMUVECTOR
  43. .BANK 0 SLOT 0 ; Defines the ROM bank and the slot it is inserted in memory.
  44. .ORG 0 ; .ORG 0 is really $8000, because the slot starts at $8000
  45. .SECTION "EmptyVectors" SEMIFREE
  46. EmptyHandler:
  47. rti
  48. .ENDS
  49. .EMPTYFILL $00