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.

57 lines
1.5 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. ; LoRom header.
  2. .MEMORYMAP
  3. SLOTSIZE $8000 ; The slot is $8000 bytes in size.
  4. DEFAULTSLOT 0 ; The SNES only has 1 slot.
  5. SLOT 0 $8000 ; Define's Slot 0's starting address.
  6. .ENDME
  7. .ROMBANKSIZE $8000 ; Every ROM bank is 32 KB in size.
  8. .ROMBANKS 8 ; 8 ROM banks = 2 Mb (256 KB).
  9. .SNESHEADER
  10. ID "SNES"
  11. NAME "PEW! PEW! " ; Program title. Should be 21 bytes long;
  12. ; "123456789012345678901" ; use spaces for unused bytes of the name.
  13. SLOWROM
  14. LOROM
  15. CARTRIDGETYPE $00 ; $00 = ROM only.
  16. ROMSIZE $08 ; $08 = 2 Mbits.
  17. SRAMSIZE $00 ; No SRAM.
  18. COUNTRY $01 ; $01 = U.S.; $00 = Japan.
  19. LICENSEECODE $00
  20. VERSION $00 ; $00 = 1.00, $01 = 1.01, etc.
  21. .ENDSNES
  22. .SNESNATIVEVECTOR ; Native Mode interrupt vector table.
  23. COP EmptyHandler
  24. BRK EmptyHandler
  25. ABORT EmptyHandler
  26. NMI VBlankHandler
  27. IRQ EmptyHandler
  28. .ENDNATIVEVECTOR
  29. .SNESEMUVECTOR ; Emulation Mode interrupt vector table.
  30. COP EmptyHandler
  31. ABORT EmptyHandler
  32. NMI EmptyHandler
  33. RESET Start
  34. IRQBRK EmptyHandler
  35. .ENDEMUVECTOR
  36. ; Defines the ROM bank and the slot it is inserted in memory.
  37. ; .ORG 0 is really $8000, because the slot starts at $8000.
  38. .BANK 0 SLOT 0
  39. .ORG 0
  40. .SECTION "EmptyVectors" SEMIFREE
  41. EmptyHandler:
  42. rti
  43. .ENDS
  44. ; Fills unused areas with $00.
  45. ; This is the opcode for BRK, which will halt the SNES if executed.
  46. .EMPTYFILL $00