Code: Select all
Performs the initialization of the memory card subsystem.
Parameters:
gamecode pointer to a 4byte long string to specify the vendors game code. May be NULL
company pointer to a 2byte long string to specify the vendors company code. May be NULL
Code: Select all
char gamecode[4] = { 'a' , 'b', 'c', 'd' };
char company[2] = { '1', '2' };
CARD_Init(gamecode, company);
Code: Select all
if(gamecode && strlen(gamecode)<=4) memcpy(card_gamecode,gamecode,4);
if(company && strlen(company)<=2) memcpy(card_company,company,2);
Code: Select all
gamecode pointer to a 4 character NULL-terminated string to specify the vendors game code. May be NULL.
company pointer to a 2 character NULL-terminated string to specify the vendors company code. May be NULL.