void k053250_device::device_start() { m_ram.resize(0x6000/2); m_buffer[0] = &m_ram[0x2000]; m_buffer[1] = &m_ram[0x2800]; unpack_nibbles(); save_item(NAME(m_ram)); save_item(NAME(m_regs)); save_item(NAME(m_page)); save_item(NAME(m_frame)); }
void k053250_device::device_start() { screen = machine().device<screen_device>(screen_tag); ram = auto_alloc_array_clear(machine(), UINT16, 0x6000/2); buffer[0] = ram + 0x2000; buffer[1] = ram + 0x2800; unpack_nibbles(); save_pointer(NAME(ram), 0x6000/2); save_item(NAME(regs)); save_item(NAME(page)); save_item(NAME(frame)); }
void K053250Init(INT32 , UINT8 *rom, UINT8 *romexp, INT32 size) { KonamiAllocateBitmaps(); K053250Ram = (UINT16*)BurnMalloc(0x6000); buffer[0] = K053250Ram + 0x2000; buffer[1] = K053250Ram + 0x2800; k053250Rom = rom; k053250RomExp = romexp; unpack_nibbles(0, rom, romexp, size); KonamiIC_K053250InUse = 1; }