here is my code. it is based off the phoenix emu by denis.
:
#include "sgl.h"
#include "sgl_cd.h"
void LoadFile(char *name, Uint8 *location, Uint32 size);
Uint16 makecol8(Uint8 r, Uint8 g, Uint8 b);
void ClsFast(Uint8 *maplocation);
void Video_Decode(void);
void load_color_proms()...