Home Download Musics Developers
API Sources Tools File Format Technicals

MFP-68901 emulator
[io68 library documentation.]


Detailed Description

MFP-68901 (Atari-ST timers) emulator.


Files

file  mfp_io.h
 MFP-68901 IO plugin header.

file  mfpemul.h
 MFP-68901 emulator header.


MFP timers

#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'.


MFP-68901 (Atari-ST timers) IO plugin

io68_t mfp_io
 MFP-68901 IO plugin instance.


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_tMFP_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.


Function Documentation

u8 MFP_getTDR int  timer,
cycle68_t  cycle
 

MFP get Timer Data register.

Parameters:
timer Timer-id (0:A 1:B 2:C 3:D).
cycle Current cycle.
Returns:
timer data register (TDR) value

void MFP_putTDR int  timer,
u8  v,
cycle68_t  cycle
 

MFP write Timer data register.

Parameters:
timer Timer-id (0:A 1:B 2:C 3:D).
v New timer data register (TDR) value.
cycle current cycle.

void MFP_putTCR int  timer,
u8  v,
cycle68_t  cycle
 

MFP write Timer control register.

Parameters:
timer Timer-id (0:A 1:B 2:C 3:D).
v New timer control register (TCR) value.
cycle current cycle.

int68_t* MFP_interrupt cycle68_t  cycle  ) 
 

Get MFP pending interruption.

Parameters:
cycle Current cycle.
Returns:
interruption info structure.
Return values:
0 no pending interruption.

cycle68_t MFP_nextinterrupt cycle68_t  cycle  ) 
 

Get cycle for the next MFP interruption.

Parameters:
cycle Current cycle.
Returns:
cycle when MFP will interrupt
Return values:
IO68_NO_INT no interrupt will occur.

void MFP_subcycle cycle68_t  subcycle  ) 
 

Change cycle count base.

Parameters:
subcycle New base for internal cycle counter.