Home Type definitionsType definitions GRECTGRECT MacVersionMacVersion

I.8 HDFUNCS

typedef struct
{
    int32_t dma_begin ( void);
    int32_t dma_end   ( void );
    int32_t dma_wait  ( d0 = int32_t ticks_200hz );
    int32_t ncr_begin ( void );
    int32_t ncr_end   ( void );
    int32_t ncr_wait  ( d0 = int32_t ticks_200hz );
} HDFUNCS;

Note: Directly before the structure (2 bytes before) lies an int16_t, which specifies the table length in int32_ts (in this case 6). All 6 pointers lie in the system variables area and may be altered in case of need. The internal functions for the floppy drive also jump via the 6 pointers.
Important: The pointer hddrv_functions in the MagX cookie may not be altered.

See also: Background-DMA in MagiC


Home Type definitionsType definitions GRECTGRECT MacVersionMacVersion