Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small snippet to make the AY scream a bit
#8
Well, most of the time you don't need that much code so you need to split it accross pages. In all our games, 128K RAM management is done manually, as all the code fits in low RAM, and some less used parts reside in RAM0 ($C000 onwards). Other RAM pages are filled with data: music, the music player, map data, graphics, static screens... When you need something, you page in the correct page, get what you need, and then set RAM0 back before continuing.

In fact, our ISR is prepared to page in RAM1, execute the music player callback routine, page in RAM0, and exit.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)