memmap.i65 992 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #if 0 /* #if0'd because it's #included, and those don't get parsed properly by snescom */
  2. ; This file is part of the snescom-asm demo - a demo of how to build a SNES program.
  3. ; See http://bisqwit.iki.fi/source/snescom.html for details.
  4. #endif
  5. /* These must be defined as constants, because they're used
  6. * in calculation that is sent to PPU as parameters */
  7. #define APUIO0 $2140
  8. #define APUIO1 $2141
  9. #define APUIO2 $2142
  10. #define APUIO3 $2143
  11. #define BG1_TILE_BASE $5800
  12. #define BG2_TILE_BASE $5000
  13. #define OAM_TILE_BASE $6000
  14. #define BG1_TILE_BUF $7EB000
  15. #define BG2_TILE_BUF $7EA000
  16. #define BG1_TILE_BAK $7E9000
  17. #define BG2_TILE_BAK $7E8000
  18. #define MCU_CMD $307000
  19. #define MCU_PARAM $307004
  20. #define RTC_STATUS $307100
  21. #define LAST_STATUS $307101
  22. #define SYSINFO_BLK $307200
  23. #define LAST_GAME $307420
  24. #define ROOT_DIR $C10000
  25. #define CMD_SYSINFO $03
  26. #define CMD_LOADSPC $05
  27. #define CMD_RESET $06
  28. #define SPC_DATA $FD0000
  29. #define SPC_HEADER $FE0000
  30. #define SPC_DSP_REGS $FE0100