Core/burn/drv/pre90s/d_prehisle.cpp
// Function to Allocate and Index required memory
Function to Allocate and Index required memory
Function to Allocate and Index required memory
static INT32 MemIndex()
{
	UINT8 *Next; Next = Mem;
	PrehisleRom          = Next; Next += 0x40000;
	PrehisleZ80Rom       = Next; Next += 0x10000;
	PrehisleTileMapRom   = Next; Next += 0x10000;
	PrehisleADPCMSamples = Next; Next += 0x20000;
	RamStart = Next;
	PrehisleRam          = Next; Next += 0x04000;
	PrehisleVideoRam     = Next; Next += 0x00800;
	PrehisleSpriteRam    = Next; Next += 0x00800;
	PrehisleVideo2Ram    = Next; Next += 0x04000;
	PrehislePaletteRam   = Next; Next += 0x00800;
	PrehisleZ80Ram       = Next; Next += 0x00800;
	RamEnd = Next;
	PrehisleTextTiles    = Next; Next += (1024 * 8 * 8);
	PrehisleSprites      = Next; Next += (5120 * 16 * 16);
	PrehisleBack1Tiles   = Next; Next += (2048 * 16 * 16);
	PrehisleBack2Tiles   = Next; Next += (2048 * 16 * 16);
	PrehislePalette = (UINT32*)Next; Next += 0x00800 * sizeof(UINT32);
	MemEnd = Next;
	return 0;
}
static INT32 MemIndex ( ) { UINT8 * Next ; Next = Mem ; PrehisleRom = Next ; Next += 0x40000 ; PrehisleZ80Rom = Next ; Next += 0x10000 ; PrehisleTileMapRom = Next ; Next += 0x10000 ; PrehisleADPCMSamples = Next ; Next += 0x20000 ; RamStart = Next ; PrehisleRam = Next ; Next += 0x04000 ; PrehisleVideoRam = Next ; Next += 0x00800 ; PrehisleSpriteRam = Next ; Next += 0x00800 ; PrehisleVideo2Ram = Next ; Next += 0x04000 ; PrehislePaletteRam = Next ; Next += 0x00800 ; PrehisleZ80Ram = Next ; Next += 0x00800 ; RamEnd = Next ; PrehisleTextTiles = Next ; Next += ( 1024 * 8 * 8 ) ; PrehisleSprites = Next ; Next += ( 5120 * 16 * 16 ) ; PrehisleBack1Tiles = Next ; Next += ( 2048 * 16 * 16 ) ; PrehisleBack2Tiles = Next ; Next += ( 2048 * 16 * 16 ) ; PrehislePalette = ( UINT32 * ) Next ; Next += 0x00800 * sizeof ( UINT32 ) ; MemEnd = Next ; return 0 ; }
Function to Allocate and Index required memory
Function to Allocate and Index required memory