#include "sgl.h" void slSynch( void );
void - gives nothing.
void - returns nothing.
slInitSystem ( TV_320x224 , NULL , 2 ); : while( -1 ) { : slSynch (); }
slInitSynch | SynchConst | SynchCount | PauseFlag |
WinPtr | Resolution | NbPCMBf | PCMBufFlag |
FRT_Count | VDP2_TVSTAT | RandWork |
#include "sgl.h" void slInitSynch( void );
void - gives nothing.
void - returns nothing.
slInitSystem ( TV_320x224 , NULL , -1 ); : while( -1 ) { : slInitSynch (); }
slSynch | SynchConst | SynchCount | PauseFlag |
WinPtr | Resolution | NbPCMBf | PCMBufFlag |
FRT_Count | VDP2_TVSTAT | RandWork |
#include "sgl.h" void ( *func ( void ) ); void slIntFunction( func );
void ( *func ( void ) ) - Pointer to the function to execute during blanking.
void - returns nothing.
void intfunc() { call1(); call2(); call3(); } slIntFunction ( intfunc ); void intfunc() { res = slDivFX ( arg1, arg2 ); : } slIntFunction ( intfunc ); /*NG!!! intfunc() uses a divider. */ /* Think of the math package functions (fixed decimal operations and matrix operations) as basically using a divider. */
slSynchFunction | UserFunction |
#include "sgl.h" void ( *func( void ) ); void slSynchFunction( func );
void ( *func( void ) ) - Pointer to the function you want to run while waiting for an interrupt.
void - returns nothing.
void syncfunc() { call1(); call2(); } slSynchFunction ( syncfunc );
slSynch | slInitSynch |
#include "sgl.h" void *src; void *dest; Uint16 size; Bool slTransferEntry( src, dest, size );
void *src - Source address.
void *dest - Destination address.
Uint16 size - Transfer size.
Bool - Error code (described below).
void *src = ( void * )( 0x6090000 ); void *dest = ( void * )( 0x25e00000 ); Uint16 size = 0x20000; slTransferEntry ( src, dest, size ); void *src = ( void * )( 0x25f00000 ); void *dest = ( void * )( 0x25e00000 ); Uint16 size = 0x1000; slTransferEntry ( src, dest, size ); /*NG Transfer between the same buses is not possible. */
Trans Count | TransRequest |
#include "sgl.h" void slNoOperation( void );
void - gives nothing.
void - returns nothing.
slIntFunction ( slNoOperation );
slIntFunction | slSynchFunction |