branches/alto2/src/emu/cpu/alto2/a2mrt.c
| r0 | r26037 | |
| 1 | /***************************************************************************** |
| 2 | * |
| 3 | * Portable Xerox AltoII memory refresh task |
| 4 | * |
| 5 | * Copyright: Juergen Buchmueller <pullmoll@t-online.de> |
| 6 | * |
| 7 | * Licenses: MAME, GPLv2 |
| 8 | * |
| 9 | *****************************************************************************/ |
| 10 | #include "alto2.h" |
| 11 | |
| 12 | //! f1_mrt_block early: block the display word task |
| 13 | void alto2_cpu_device::f1_mrt_block_0() |
| 14 | { |
| 15 | /* clear the wakeup for the memory refresh task */ |
| 16 | m_task_wakeup &= ~(1 << m_task); |
| 17 | LOG((0,2," BLOCK %s\n", task_name[cpu.task])); |
| 18 | } |
| 19 | |
| 20 | //! called by the CPU when MRT becomes active |
| 21 | void alto2_cpu_device::mrt_activate() |
| 22 | { |
| 23 | /* TODO: what do we do here? */ |
| 24 | m_task_wakeup &= ~(1 << m_task); |
| 25 | } |
| 26 | |
| 27 | //! memory refresh task slots initialization |
| 28 | void alto2_cpu_device::init_mrt(int task) |
| 29 | { |
| 30 | set_f1(task, f1_block, &alto2_cpu_device::f1_mrt_block_0, 0); |
| 31 | /* auto block */ |
| 32 | m_active_callback[task] = &alto2_cpu_device::mrt_activate; |
| 33 | } |