#include "emu68/struct68.h"
Go to the source code of this file.
Defines | |
#define | TIMER_A 0 |
MFP timer 'A'. | |
#define | TIMER_B 1 |
MFP timer 'B'. | |
#define | TIMER_C 2 |
MFP timer 'C'. | |
#define | TIMER_D 3 |
MFP timer 'D'. | |
Functions | |
int | MFP_reset (void) |
MFP reset. | |
int | MFP_init (void) |
MFP init. | |
u8 | MFP_getTDR (int timer, cycle68_t cycle) |
MFP get Timer Data register. | |
void | MFP_putTDR (int timer, u8 v, cycle68_t cycle) |
MFP write Timer data register. | |
void | MFP_putTCR (int timer, u8 v, cycle68_t cycle) |
MFP write Timer control register. | |
int68_t * | MFP_interrupt (cycle68_t cycle) |
Get MFP pending interruption. | |
cycle68_t | MFP_nextinterrupt (cycle68_t cycle) |
Get cycle for the next MFP interruption. | |
void | MFP_subcycle (cycle68_t subcycle) |
Change cycle count base. | |
Variables | |
u8 | mfp [0x40] |
MFP shadow register array. |
MFP get Timer Data register.
timer | Timer-id (0:A 1:B 2:C 3:D). | |
cycle | Current cycle. |
MFP write Timer data register.
timer | Timer-id (0:A 1:B 2:C 3:D). | |
v | New timer data register (TDR) value. | |
cycle | current cycle. |
MFP write Timer control register.
timer | Timer-id (0:A 1:B 2:C 3:D). | |
v | New timer control register (TCR) value. | |
cycle | current cycle. |
Get MFP pending interruption.
cycle | Current cycle. |
0 | no pending interruption. |
Get cycle for the next MFP interruption.
cycle | Current cycle. |
IO68_NO_INT | no interrupt will occur. |
void MFP_subcycle | ( | cycle68_t | subcycle | ) |
Change cycle count base.
subcycle | New base for internal cycle counter. |