sc68fordevelopers  2.2.1
mfpemul.h
Go to the documentation of this file.
1 
11 /* Copyright (C) 1998-2001 Ben(jamin) Gerard */
12 
13 #ifndef _MFPEMUL_H_
14 #define _MFPEMUL_H_
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include "emu68/struct68.h"
21 
22 #define TIMER_A 0
23 #define TIMER_B 1
24 #define TIMER_C 2
25 #define TIMER_D 3
28 extern u8 mfp[0x40];
29 
32 int MFP_reset(void);
33 
36 int MFP_init(void);
37 
45 u8 MFP_getTDR(int timer, cycle68_t cycle);
46 
54 void MFP_putTDR(int timer, u8 v, cycle68_t cycle);
55 
63 void MFP_putTCR(int timer, u8 v, cycle68_t cycle);
64 
74 
83 
88 void MFP_subcycle(cycle68_t subcycle);
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* #ifndef _MFPEMUL_H_ */
void MFP_putTDR(int timer, u8 v, cycle68_t cycle)
MFP write Timer data register.
Struture definitions.
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.
u8 MFP_getTDR(int timer, cycle68_t cycle)
MFP get Timer Data register.
unsigned char u8
Must be an unsigned 8 bit integer.
Definition: type68.h:31
int MFP_init(void)
MFP init.
int MFP_reset(void)
MFP reset.
68K interruption exception structure.
Definition: struct68.h:54
unsigned int cycle68_t
At least 32 bit integer.
Definition: type68.h:58
void MFP_putTCR(int timer, u8 v, cycle68_t cycle)
MFP write Timer control register.