PVcollib  1.5.0
A devkit for ColecoVision
graphics/backgrounds/rlecompress/grafrlecomp.c
/*---------------------------------------------------------------------------------
bitmap demo with rle compression
-- alekmaul
---------------------------------------------------------------------------------*/
#include "grafrlecomp.h"
#include "gfxs.h" // to add definition of graphics
//---------------------------------------------------------------------------------
// The NMI routine. Gets called 50 or 60 times per second
// nothing to update for bitmap example
void nmi (void) {
}
//---------------------------------------------------------------------------------
void main (void) {
// Put screen in text mode 2
// Put image in vram and duplicate to the 2nd & 3rd zone
vdp_rle2vram (TILourvision, chrgen); // characters
vdp_rle2vram (COLourvision, coltab); // colors
vdp_rle2vram (MAPourvision, chrtab); // map
// Wait for nothing :P
while(1) {
// Wait Vblank
}
// startup module will issue a soft reboot if it comes here
}