FredTheFred Posted November 11, 2015 Share Posted November 11, 2015 Hello all. I've got a problem with the memory on Colecovision. When you use sprites you use rle2ram to move data on Ram to Vram. But can i use the method for an template in ascii or the something like as ? This is a sample cave's code for design the template room const byte ways202 []={0x20,0x20,0x20,0x5C,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x2F,0x20,0x20,0x20}; I think all along the game i fill Ram or Vram and after some minutes the game crash. Quote Link to comment Share on other sites More sharing options...
Kiwi Posted November 11, 2015 Share Posted November 11, 2015 Please use rle2vram(SpriteData,0x3800) to decompress sprites from Cartridge ROM directly to VRAM. A full sprite pattern table takes 1000-2000 bytes of memory. No need to decompress to RAM first and then upload the data to VRAM, since the rle data is already accessible by CPU. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.