summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/alto2/a2mrt.cpp
blob: c072a23129cf2fecf88f78fec0b53c51e919f5ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// license:BSD-3-Clause
// copyright-holders:Juergen Buchmueller
/*****************************************************************************
 *
 *   Xerox AltoII memory refresh task
 *
 *****************************************************************************/
#include "alto2cpu.h"

//! f1_mrt_block early: block the display word task
void alto2_cpu_device::f1_early_mrt_block()
{
	/* clear the wakeup for the memory refresh task */
	m_task_wakeup &= ~(1 << m_task);
	LOG((this,LOG_MRT,2,"    BLOCK %s\n", task_name(m_task)));
}

//! called by the CPU when MRT becomes active
void alto2_cpu_device::activate_mrt()
{
	m_task_wakeup &= ~(1 << m_task);
	if (m_ewfct)
	{
		// The Ether task wants a wakeup, too
		m_task_wakeup |= 1 << task_ether;
	}
}

//! memory refresh task slots initialization
void alto2_cpu_device::init_mrt(int task)
{
}

void alto2_cpu_device::exit_mrt()
{
	// nothing to do yet
}

void alto2_cpu_device::reset_mrt()
{
	// nothing to do yet
}