Shinobi Library - Cache Function

syCacheInit

Initializes the cache functions

FORMAT

Void syCacheInit( form )
SY_CACH_FORM form

PARAMETER

 form  Cache type 

RETURN

None

DESCRIPTION

Initializes the cache functions. The argument form can be specified as follows:

 SYD_CACHE_FORM_IC_INDEX  Sets instruction cache to index mode. 
 SYD_CACHE_FORM_OC_INDEX  Sets operand cache to index mode. 
 SYD_CACHE_FORM_IC_ENABLE  Enables instruction cache. 
 SYD_CACHE_FORM_OC_ENABLE  Enables operand cache. 
 SYD_CACHE_FORM_OC_RAM  Sets operand cache to RAM mode. 
 SYD_CACHE_FORM_P1_CBP1  Sets area to copyback mode. 
 SYD_CACHE_FORM_P0_WTP0  Sets area to writeback mode. 


NOTE

This function is called from within the syHwInit() function. Applications are prohibited from overwriting the values that were set by this function. Upon initialization, the settings are as follows:

SYD_CACHE_FORM_IC_ENABLE | SYD_CACHE_FORM_OC_ENABLE | SYD_CACHE_FORM_P1_CB

RAM mode for the operand cache is prohibited for the Sega library.


REFERENCE

syHwInit()

syCacheInit
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999