Core/burn/drv/toaplan/d_hellfire.cpp
// This routine is called first to determine how much memory is needed (MemEnd-(UINT8 *)0),
// and then afterwards to set up all the pointers
This routine is called first to determine how much memory is needed (MemEnd-(UINT8 *)0),
and then afterwards to set up all the pointers
This routine is called first to determine how much memory is needed ( MemEnd - ( UINT8 * ) 0 ) and then afterwards to set up all the pointers
static INT32 MemIndex()
{
	UINT8 *Next; Next = Mem;
	Rom01		= Next; Next += 0x040000;		
	RomZ80		= Next; Next += 0x008000;		 Z80 ROM
	BCU2ROM		= Next; Next += nBCU2ROMSize;	 BCU-2 tile data
	FCU2ROM		= Next; Next += nFCU2ROMSize;	 FCU-2 tile data
	RamStart	= Next;
	Ram01		= Next; Next += 0x008000;		 CPU #0 work RAM
	RamPal		= Next; Next += 0x001000;		 palette
	RamPal2		= Next; Next += 0x001000;		 palette
	RamZ80		= Next; Next += 0x008000;		 Z80 RAM
	BCU2RAM		= Next; Next += 0x010000;
	FCU2RAM		= Next; Next += 0x000800;
	FCU2RAMSize	= Next; Next += 0x000080;
	RamEnd		= Next;
	ToaPalette	= (UINT32 *)Next; Next += nColCount * sizeof(UINT32);
	ToaPalette2	= (UINT32 *)Next; Next += nColCount * sizeof(UINT32);
	MemEnd		= Next;
	return 0;
}
static INT32 MemIndex ( ) { UINT8 * Next ; Next = Mem ; Rom01 = Next ; Next += 0x040000 ; RomZ80 = Next ; Next += 0x008000 ; BCU2ROM = Next ; Next += nBCU2ROMSize ; FCU2ROM = Next ; Next += nFCU2ROMSize ; RamStart = Next ; Ram01 = Next ; Next += 0x008000 ; RamPal = Next ; Next += 0x001000 ; RamPal2 = Next ; Next += 0x001000 ; RamZ80 = Next ; Next += 0x008000 ; BCU2RAM = Next ; Next += 0x010000 ; FCU2RAM = Next ; Next += 0x000800 ; FCU2RAMSize = Next ; Next += 0x000080 ; RamEnd = Next ; ToaPalette = ( UINT32 * ) Next ; Next += nColCount * sizeof ( UINT32 ) ; ToaPalette2 = ( UINT32 * ) Next ; Next += nColCount * sizeof ( UINT32 ) ; MemEnd = Next ; return 0 ; }
This routine is called first to determine how much memory is needed (MemEnd-(UINT8 *)0),
and then afterwards to set up all the pointers
This routine is called first to determine how much memory is needed ( MemEnd - ( UINT8 * ) 0 ) and then afterwards to set up all the pointers
// // Z80 ROM // BCU-2 tile data // FCU-2 tile data // CPU #0 work RAM // palette // palette // Z80 RAM