cheader.inc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ;----------------------------------------------------------------------;
  2. ; Header File ;
  3. ; (Written By MarcTheMER) ;
  4. ; Email: marcthemer@hotmail.com ;
  5. ;======================================================================;
  6. ; I had written this simple yet useful header file to help SNES ;
  7. ; programmers with their assembly. This section of code modifies the ;
  8. ; SNES cartridge header so it is compatable for use on zsnes or snes9x ;
  9. ;======================================================================;
  10. ; If you use any of my header files to create an awesome game please ;
  11. ; email me as I am always trying to learn new programming skills. ;
  12. ;----------------------------------------------------------------------;
  13. .SNESNATIVEVECTOR ; Defines inturupt vactor table
  14. COP DoNothing
  15. BRK DoNothing
  16. ABORT DoNothing
  17. NMI VBlank
  18. IRQ DoNothing
  19. .ENDNATIVEVECTOR
  20. .SNESEMUVECTOR ; Defines inturupt vactor table
  21. COP DoNothing
  22. ABORT DoNothing
  23. NMI DoNothing ; I wouldn't recomend using emulation mode.
  24. RESET Main
  25. IRQBRK DoNothing
  26. .ENDEMUVECTOR
  27. .EMPTYFILL $00 ; fills the rom with $00
  28. .BANK 0 SLOT 0
  29. .ORG 0
  30. .SECTION "EmptyVectors" SEMIFREE ; Set up interupt vector coding.
  31. DoNothing:
  32. RTI
  33. .ENDS