Esempio n. 1
0
void dgn_beta_state::SetDefaultTask()
{
//  UINT8 *videoram = m_videoram;
	int     Idx;

	LOG_DEFAULT_TASK(("SetDefaultTask()\n"));
	//if (VERBOSE) debug_console_printf(machine())->set_base("Set Default task\n");

	m_TaskReg=NoPagingTask;

	/* Reset ram pages */
	for(Idx=0;Idx<ROMPage-1;Idx++)
	{
		m_PageRegs[m_TaskReg][Idx].value=NoMemPageValue;
	}

	/* Reset RAM Page */
	m_PageRegs[m_TaskReg][RAMPage].value=RAMPageValue;

	/* Reset Video mem page */
	m_PageRegs[m_TaskReg][VideoPage].value=VideoPageValue;

	/* Reset rom page */
	m_PageRegs[m_TaskReg][ROMPage].value=ROMPageValue;

	/* Reset IO Page */
	m_PageRegs[m_TaskReg][LastPage].value=IOPageValue;
	m_PageRegs[m_TaskReg][LastPage+1].value=IOPageValue;

	UpdateBanks(0,LastPage+1);

	/* Map video ram to base of area it can use, that way we can take the literal RA */
	/* from the 6845 without having to mask it ! */
//  videoram=&m_ram->pointer()[TextVidBasePage*RamPageSize];
}
Esempio n. 2
0
static void SetDefaultTask(void)
{
    int		Idx;

#ifdef LOG_DEFAULT_TASK
    logerror("SetDefaultTask()\n");
#endif

    TaskReg=NoPagingTask;

    /* Reset ram pages */
    for(Idx=0; Idx<ROMPage-1; Idx++)
    {
        PageRegs[TaskReg][Idx].value=NoMemPageValue;
    }

    /* Reset RAM Page */
    PageRegs[TaskReg][RAMPage].value=RAMPageValue;

    /* Reset Video mem page */
    PageRegs[TaskReg][VideoPage].value=VideoPageValue;

    /* Reset rom page */
    PageRegs[TaskReg][ROMPage].value=ROMPageValue;

    /* Reset IO Page */
    PageRegs[TaskReg][IOPage].value=IOPageValue;
    PageRegs[TaskReg][IOPage+1].value=IOPageValue;

    UpdateBanks(0,IOPage+1);
    videoram=PageRegs[TaskReg][VideoPage].memory;
}